Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transform command
Message
De
05/03/2002 07:08:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
05/03/2002 07:06:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00628282
Message ID:
00628301
Vues:
15
>>>I would like to display a digit with 4 decimals as a string.
>>>But when I use to following syntax:
>>>
>>> ab=0.1111
>>> ?TRANSFORM(ab,'999999.9999')
>>>
>>>this returns '0.1110' ->is this normal ?
>>>
>>>BTW. I can't change the syntax to str(?,?). this would be to much work to change.
>>>
>>>Please help me ASP
>>
>>It seems the result depends on SET DECIMALS.
>>
>>Hilmar.
>
>That's it.
>Is this a normal behaviour or a bug?

At least, I find it bothersome that several functions seem to return different results based on SET DECIMALS. I don't know whether this should be considered a bug. It looks like they did it on purpose.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform