Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert to currency give me error
Message
From
23/06/2003 15:42:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
23/06/2003 11:17:15
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00802925
Message ID:
00803055
Views:
18
>Hi,
>
>a workaround to the currency index bag, Thread #802831, on VFP7 and VFP8 is to use NTOM() function, but numeric approximation put another limit
>
>?NTOM(MTON($225179981368.5286)) && VFP round error

Yes, numeric gives you a range of about 15-16 significant digits. It seems this number is outside the range of significant digits, for numeric.

Currency gives you, in total, more significant digits - but at fixed positions. Actually, I understand that "currency" values are stored internally as an 8-byte integer.

>?NTOM(922337203685477.5807) && VFP error

Outside the range for currency, unfortunately.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform