Re: Calculating with imprecise values
- Posted by jxliv7 <jxliv7 at hotmail.com> Dec 13, 2005
- 691 views
Juergen, what i think you're talking about is significant digits and significant decimals. there's some excellent discussions of them at http://mathforum.org/dr.math/ and in particular http://mathforum.org/library/drmath/view/56375.html http://mathforum.org/library/drmath/view/59014.html there are no Euphoria libraries that i know of that deal with this, since the results of any multiplication, division, addition, substraction, sqare root, etc., can vary considerably dependent on what the user wants. figuring taxes is different (between Europe and the US, for example), rounding is different (which digit to base the rounding on, round up, round down, truncate), scientific calculations are different, etc. what i've done with my apps is basically have the user make the choice beforehand of the precision of any calculation. hope that helps, -- jon