Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
STR() rounds numbers longer than 17 digits...?
Message
From
03/01/2001 10:17:18
 
 
To
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:
00458916
Views:
22
Hi!

I don't know exactly. What do you want to get by your question? It looks for me you want to figure out bug instead of solving problem. I found solution, the rest - I don't know about.

Question could not be invalid. Only answer could be invalid.

>>? 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.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform