Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transform vs round
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01024029
Message ID:
01024083
Views:
20
>>>Is there a way to stop the transform function to round to what Set Decimals is set to?
>>>
>>>Ex
>>>
>>>SET DECIMALS TO 2
>>>? TRANSFORM(999.0288, '#####.###') && Prints 999.030
>>>SET DECIMALS TO 3
>>>? TRANSFORM(999.0288, '#####.###') && Prints 999.029
>>>
>>
>>
>>No !!!
>>I think this is impossible! Sorry.
;o)
>>BTW why you ask?
>
>This was used to display allocation amounts in our application. Which they wanted to go out to 3 decimals and now the client is complaining about it. I don't know where all the places this was used at so I was hopeing for a setting that would fix all my problems.

Chuck,
A tricky piece of work.
Good luck.
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Reply
Map
View

Click here to load this message in the networking platform