It's best (numerically) to delay casting as late as possible:
double circum = (double)(radius * 2) * Math.Pi;
In this case, it makes no difference, but it might if you were doing something...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: BioPhysEngr Search: Search took 0.02 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |