Re: Full Integer o real.
Re: Full Integer o real.
- Subject: Re: Full Integer o real.
- From: Emmanuel <email@hidden>
- Date: Mon, 17 Nov 2003 10:26:09 +0100
At 9:21 PM -0300 16/11/03, Nico Christie wrote:
>
Hi, i'm writing a script that does some math and I'm having this problem:
>
Once it finished and returns the result, I want to save that number to a
>
file. The thing is that sometimes the number is either to small or to big
>
and is then expressed using scientific notation ( 0,0001 -> 1.0E-4 ). This
>
number "as text" is still 1.0E-4, "as integer" is obviously returning error
>
and I'm out of ideas. Is there a way? I'd like the full number: 0,0000000000001
>
if necesary. (as extended real? full real? Tried, not workingbut maybe similar.)
You can certainly do that by script, but you may want to consider using the Satimage osax' "format" command, which will do that for you.
>
Thanks a lot!
>
>
PS: In AppleScript, is there a way to do things in the background while
>
displaying a dialog?
That's not easy unless you use Smile as your environment. Smile is a free script editor which provides a better environment for AppleScript, including opening dialogs without hanging your scripts.
The Satimage osax and Smile are free products, available at <
http://www.satimage-software.com>
Emmanuel
Affiliated to Satimage-software.
_______________________________________________
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.