Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Round instead of truncate through InputMask property
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Round instead of truncate through InputMask property
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01171634
Message ID:
01171634
Vues:
59
I use a double field with 15 decimals because I do unit conversions on the fly when the user changes the unit (droplist in another column).
The DynanicInputMask Property of the column displaying the converted number depends on a mask assigned to the unit (ex:gal=999.9, lb=9999, kg=9999).
The value gets truncated instead of rounded. (1.58156897 will display 1.5 instead of 1.6 for mask 999.9)
My column is bound to my field ans I don't want my field value to be rounded, just "displayed" as rounded.

Thanks for your help.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform