Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
STR() rounds numbers longer than 17 digits...?
Message
From
04/01/2001 04:32:43
Andrzej Majlich
Vulcan sp. z o. o.
Wroclaw, Poland
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00458883
Message ID:
00459248
Views:
26
>>VFP doesn't handle numbers greater than 16 digits of precision (left and right of decimal point). It rounds from there.

I've just started to wonder why:

?transform($922337203685477.5807-2.1111,'999 999 999 999 999 999.9999')

gives

922 337 203 685 475,4696


but the URL you attached explained everything - thanks.

>Or, more helpfully (IMNSHO), Q259562 INFO: The Visual FoxPro Digits of Precision.
_________________

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

Click here to load this message in the networking platform