Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bugs with literal double-precision floating-point number
Message
De
24/11/2003 09:42:38
 
 
À
24/11/2003 09:31:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00852922
Message ID:
00852924
Vues:
15
1. Question.

How many literal digits are meant in VFP ?
SET DECIMALS TO 18  && YOU CAN PUT ANY VALUE HERE, RESULT NOT CHANGE
SET FIXED OFF       && YOU CAN PUT ON HERE, RESULT NOT CHANGE
? 3.119999999999971000000000000000000000E140  && 3.11999999999999000000000000000000E+140
? 3.1199999999999710000000000000000000000E140 && 3.12000000000000000000000000000000E+140
1 Problem: why VFP print dpfpn literals with 32 decimals ?

2 Bug : 37° literal zero it has a weight not zero

then

? 'all zero are zero ?' , 3.119999999999971000000000000000000000E140 >= 3.1199999999999710000000000000000000000E140


rule is literal1>=literal2 -> value1>=value2 is not respected.

How many literal digits are meant in VFP ? Sure at least 37 decimals.

This is a little problem because it appears with much decimals.

Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform