Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Explanation pls
Message
De
03/03/2011 18:31:00
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
03/03/2011 16:27:21
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
01502561
Message ID:
01502576
Vues:
67
>
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...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform