Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql makes too many decimal places
Message
 
À
17/12/1999 12:06:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00305338
Message ID:
00305348
Vues:
32
>My sql statment has calculations on numeric fields (two decimal places, eg, 6.2). The resulting calculated fields have too many decimal places (eg, 16.5).
>
>How can I keep them to 2 decimal places?
>
>Should I leave the data alone and truncate in the report? (ick)
>I tried SET FIXED ON, and the BROWSE looks lovely, but the report still prints all the decimal places.
>
>Thanks for stating the (not to me) obvious.

Sylvia, how does your SQL look like?
You could include ROUND() function (to certain number of decimal places)in your calculation expression, or include ROUND() in the report expression.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform