Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add a big number
Message
From
01/08/2012 08:28:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/07/2012 12:16:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01549526
Message ID:
01549652
Views:
55
Check my download #10044. Numbers are stored as strings there.

>I want to create a group of big number2, such as:
>
>123456789012345678901001
>123456789012345678901002
>123456789012345678901003
>
>
>I did
>
>nstart=123456789012345678901001
>cstart=alltrim(trans(nstart,'999999999999999999999999'))
>
>for i=1 to 10
>nstart=nstart+1
>cstart=cstart+'  '+alltrim(trans(nstart,'999999999999999999999999'))
>next
>
>
>but VFP can only add the first 16 digits
>thus I only get
>
>123456789012345678901001
>123456789012345600000000
>123456789012345600000000
>123456789012345600000000
>123456789012345600000000
>
>
>please advise
>
>Thank for the help
>
>Regards,
>
>Jerry
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