How would one go about displaying a double to eight digits accuracy without having it displayed in Scientific Notation?
I have a simple function for retrieving a cosine in degrees and occasionally it returns in Scientific Notation, however if I round down to 7 digits using Round(Mycos(x),7) it's fine. But I could really use the eight digits accuracy. It would seem when it's returned in Sci Notation, it can throw some errors in future calculations.
Thanks,
Wraygun
Public Function MyCos(D As Double)
MyCos = Cos((D * (Pi / 180)))
End Function
***You can't change your past, but you can change your future***
I have a simple function for retrieving a cosine in degrees and occasionally it returns in Scientific Notation, however if I round down to 7 digits using Round(Mycos(x),7) it's fine. But I could really use the eight digits accuracy. It would seem when it's returned in Sci Notation, it can throw some errors in future calculations.
Thanks,
Wraygun
Public Function MyCos(D As Double)
MyCos = Cos((D * (Pi / 180)))
End Function
***You can't change your past, but you can change your future***