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.