Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
STR() rounds numbers longer than 17 digits...?
Message
From
03/01/2001 09:55:06
Andrzej Majlich
Vulcan sp. z o. o.
Wroclaw, Poland
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00458883
Message ID:
00458910
Views:
19
>? transform(-$922337203685477.5807,'99999999999999999.9999')
>shows -922337203685477.5807

TRANSFORM really does a thing. But 16 digits handled by STR aren't an effect of converting currency to numeric. Notice that

>>str(-922337203685477.5807,21,4)=='-922337203685477.6000'

doesn't deal with currency type variable or literal. So the question about the STR is valid.
_________________

*|| Andrzej [NJ].
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform