Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More then 15 places past decimal??
Message
From
21/01/2002 06:21:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00605696
Message ID:
00607619
Views:
28
This message has been marked as the solution to the initial question of the thread.
>I understand. Thanks for all your input. I tried to get the division to work on the code you had sent me but after some tweaking of it I still couldn't figure out how to do it. If you have an updated class I would be very interested in seeing it. Is it able to return more than 15 significant digits?
>
>Thanks again for your help.

The .Divide() method was very incomplete. In the current version (on my computer) I get the correct digits, but still have to figure out where to put the decimal point.

And yes, the division is supposed to work with any desired precision - the only limit that applies is the size of VFP arrays, used internally for calculations (basically, one array element per digit).

BTW, I would be interested in information from you, about why anybody would need precision higher than 15 significant digits, to include it in the comments.

In the current implementation, I don't specify a number of significant digits, instead, a fixed number of decimals - which can be as high as you desire. For instance, 50 or 100 decimals would be no problem.

Hilmar.
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