Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting a number to only two decimal places
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Converting a number to only two decimal places
Divers
Thread ID:
00027774
Message ID:
00027774
Vues:
79
In my application I have Set Decimals to 3. But I do have some fields where I need to have only 2 decimal places. The datatype on the SQL server is defined as float. How can I tell VFP 5.0 to convert these numbers to only two decimal places, rounding when necessary?

When I tried using Input Mask = 999,999.99, the numbers display with only two decimal places, but they don't round properly.

Jeff
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform