Re: BIG number as string
Re: BIG number as string
- Subject: Re: BIG number as string
- From: "Arthur J. Knapp" <email@hidden>
- Date: Wed, 18 Dec 2002 09:48:52 -0500
>
Date: Tue, 17 Dec 2002 22:51:13 +0000
>
Subject: BIG number as string
>
From: julifos <email@hidden>
>
I'd like retrieve a string from a big-numbers-calculation, but I can't :-(
>
55555 * 55555
>
--> 3086358025
>
--> rather than 3.086358025E+9
Nigel Garvey has an exceptionally robust and well tested handler for this:
<
http://files.macscripter.net/ScriptBuilders/ScriptTools/numToStr.sit>
>
(seems it works when displaying it in a dialog...)
>
display dialog result
Wow, I never noticed that before. It does NOT work with the error-coercion
hack:
set bigNumber to 55555 * 55555
try
err of bigNumber
on error m
m --> "Can't get err of 3.086358025E+9."
end
Display dialog must have it's own internal number-to-string function.
{ Arthur Knapp, of <
http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m
"Safe the Nature" - political graffiti in Prague
}
_______________________________________________
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.