Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scientific Notation with Doubles 1

Status
Not open for further replies.

wraygun

Programmer
Dec 9, 2001
272
0
0
US
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***
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top