Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Explanation pls
Message
From
03/03/2011 18:31:00
John Baird
Coatesville, Pennsylvania, United States
 
 
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
01502561
Message ID:
01502576
Views:
64
>
Double d = Double.MaxValue;
>            Int64 i = Int64.MaxValue;
>
>            Double d2 = d - i;
>
>            bool b = d2 == d;
I'm no expert by any means, but I think scientific notation has a precision of 16 decimal places and subtracting you number from 1.*+308 is non-detecatable by the precision...
Previous
Reply
Map
View

Click here to load this message in the networking platform