Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set numeric format programatically
Message
De
20/10/2004 17:58:28
 
 
À
20/10/2004 08:25:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00952502
Message ID:
00953164
Vues:
17
>>My report select the QTY field but my data is having 4 decimal places
>>I want it to auto remove the last 0 decimal places
>>e.g.
>>my data 152445.5230 display as 152,445.523
>>my data 152445.5000 display as 152,445.5
>>my data 152445.0000 display as 152,445
>>my data 152445.5237 display as 152,445.5237
>
>But that's not what you said in your original message.
>Try TRANSFORM( QTY) in your report field. It's supposed to remove trailing 0 from numeric data by default.

I know the help says that, but TRANSFORM() hasn't worked that way for a long time. You'll still see the trailing 0's.

For VFP9, the help has been modified to state:
"Removes trailing zeros from the decimal portion of a numeric value when all the numbers following the decimal point are zeros."
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform