Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Diff. between Numeric with precision, Currency and Doubl
Message
 
À
10/06/2003 09:16:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00798235
Message ID:
00798350
Vues:
42
Hi Fabio

I did run the code, what really happens. I browsed and I see a 3.0. I guess I am slow to understand, please tell me the reasons.

And is double advisable to use?

>Hi Bhavbhuti,
>
>you want use DOUBLE ?
>
>Attention:
>
>
>CREATE CURSOR TEST (v B)
>APPEND BLANK
>FOR I=1 TO 100
> REPLACE v WITH v+0.03
>NEXT
>? TRANSFORM(v)
>? TRANSFORM(v,'@^')
>? v=3
>? v=3.00000000000
>* OK v is 3.
>* No! v isn't 3.
>? v=3.000000000000
>? TRANSFORM(v+0.000000000000000)
>? (v-3)*10^15
>
>
>Fabio
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform