|
-
Oct 15th, 2001, 10:03 AM
#1
Thread Starter
Lively Member
sin, cos & precision
Hello Everyone.
I'm aware that VB's highest precision variable, double, will only accept a number with less than 15 decimal places. I'm also aware that I can work with higher-precision numbers using text strings and converting to decimal data type using cdec(). But what about the built-in VB functions like sin and cos? These calculations are automatically returned with less than 15 decimals. Does anyone know of way to perform trig (and other math) operations to a higher precision? I did try assigning cdec(cos(AngleInRadians)) to a variant. Still returned the 15-decimal number...
Any thoughts would be greatly appreciated!
p.s. In case anyone is interested, I'm using this calculation in coordinate geometry to calculate the end-point of a line, given the start point and the line bearing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|