Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why won't return a value with Decimal Places ??
Message
 
À
23/01/2003 23:33:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00744962
Message ID:
00744984
Vues:
20
Enry,

Check SET("DECIMALS") to see if it has been somehow set to zero. Default is two, but it may have been changed somewhere.

Dana

>Create Cursor Table1(Far L(1),Far2 N(10,2))
>
>INSERT INTO Table1(Far,Far2) ;
> VALUES (.T.,-201.12)
>
>INSERT INTO Table1(Far,Far2) ;
> VALUES (.F.,-10.62)
>
>INSERT INTO Table1(Far,Far2) ;
> VALUES (.T.,-101.72)
>
>Clear
>Select Table1
>Go 2
>?IIF(Far=.F.,Far2,0.00)
>
>Wait 'Press Any Key To Continue ..... '
>
>Select IIF(Far=.F.,Far2,0.00) as Far2 From Table1
>
>My Question , Why the Far2 is return 11 instead of -10.62 ??
>
>Any idea why ?? or anything i have miss out ??
>
>Thanks a lot........
Where's the damned Any Key?...too late
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform