Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transform command
Message
From
05/03/2002 07:08:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
05/03/2002 07:06:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00628282
Message ID:
00628301
Views:
16
>>>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform