Re: Crunch numbers
Re: Crunch numbers
- Subject: Re: Crunch numbers
- From: has <email@hidden>
- Date: Fri, 15 Mar 2002 03:03:48 +0000
Hi,
Just posted roundNumbersLib to The Little Page.
It contains five handlers equivalent to Standard Additions' "round"
function (one for each 'style'), and another five handlers for trimming
reals to a given number of decimal places. The rounding handlers are much
faster than SA's own, btw; the trimming handlers not so quick (maybe a
shade slower than SA's "round").
It also avoids the floating-point rounding errors that can occur when
trimming certain numbers. Kudos to the extremely sharp-eyed Emmanuel Levy
for spotting this and pointing it out here a few weeks back; it was much
appreciated.
As usual, I've done some tests and think I've gotten it all correct, but if
someone would like to double check and let me know then I would really
appreciate it. (Then I can finalise it and post it to AppleMods.)
Cheers,
has
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.