[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] what's the best way to have MacPerl do proper long division?



On Tue, 07 Nov 2000 09:42:19 -0500, Scott R. Godin wrote:

>in other words, I would like to have more accurate calculations involving
>division, where the percentages don't add up to more than 100%, and where I
>can be reasonably assured of accuracy to around 5-6 decimal places. ?

Doesn't Math::BigFloat help?

As for the "add to 100%" rule: why not rescale. Calculate your total at
the very latest, and calculate the percentage from that.

p.s. Is it better to have a total of 99.9999% than of 100.0001%?

-- 
	Bart.

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org