Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number with 18 digits
Message
From
20/11/2003 18:24:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00851988
Message ID:
00852139
Views:
9
>Hi all,
>
>I'm trying to set the value of a variable to a number of 18 digits.
>I'm with VFP6 SP 5.
>
>num = 810000000000000361
>
>and it displays
>810000000000000400
>
>is there any configuration parameter or anything to set length of variables to more than 16 digits?
>
>TIA
>Fabian

VFP only manages about 15 significant digits, with the usual double-precision numbers.

Currency values are accurate, to the limits they permit.

David was probably referring to my class, download #10044. However, this may be too slow for any practical use.
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
Reply
Map
View

Click here to load this message in the networking platform