Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TRANSFORM function rounds value?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01292170
Message ID:
01292179
Vues:
26
This message has been marked as the solution to the initial question of the thread.
Unfortuantelly, the TRANSFORM() function is affected by SET DECIMAL setting and it does round result if it has more decimal spaces than specified by SET DECIMAL .
lnValue = 1.98765
SET DECIMALS TO 2    && Default
? TRANSFORM(lnValue,"9.9999")
SET DECIMALS TO 4
? TRANSFORM(lnValue,"9.9999")
SET DECIMALS TO 5
? TRANSFORM(lnValue,"9.9999")
>It seems that my table values when put through the TRANSFORM() function does some rounding up. Is this true?
>
>Such as:
>
<snip>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform