Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert number to string and back
Message
From
31/03/2008 12:09:38
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01306961
Message ID:
01306985
Views:
8
>>>No, this should be rtrim(padr(xxx,100))
>>
>>
>>Why, if I may ask ??
>>
>
>AFAIK transform has a bug related with SET FIXED (or SET DECIMALS).
>
>That's why PADR solution is preferrable. I wanted to even suggest it, but was not sure about the retrieval part.
>
>>>
>>>>(2) get it back
>>>>yyy = eval(retrieved from reg)
>>>>
>>>
>>>Good idea.
>
>EVALUATE, I hope, would work, though I'm not 100% sure here either.

I do not understand a rtrim(padr())
set decimals to 2
aa = 123.12345
?eval(transf(aa)) && 123.12345
There are limits with the floating point representation
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform