Re: Crunch numbers
Re: Crunch numbers
- Subject: Re: Crunch numbers
- From: Deivy Petrescu <email@hidden>
- Date: Thu, 14 Mar 2002 14:45:52 -0500
At 9:48 PM +1300 3/14/02, Andy Wylie wrote:
on 14/3/02 9:02 AM, Deivy Petrescu at email@hidden wrote:
(round (z * (10 ^ numdigits)) rounding as taught in school) * (10 ^
numdigits)
div (10 ^ n) / (10 ^ numdigits)
no good system 8.6, any ideas?
display dialog z & " must be a number and " &
have you really got an auto string coercion there Deivy?
_____________________________ Andy
Oops!
Sorry, I changed the name of the variables and the dialog as I was
sending it to the list.
instead of n, change it to numdigits or just change numdigits to n
which should be more sensible.
No I did not try the dialog, I changed it as I was sending and I
forgot to put a parentheses and an "as string" at the end!
I am really sorry , but all my variables are short and non
descriptive, I must change them as I send the to the script to the
list. I 'll try to police myself on that.
Other than those fixes the script should work in "any" version.
--
Deivy Petrescu
http://www.dicas.com
Tips for Mac
dicas para Mac
_______________________________________________
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.