Re: Exponential notation [was: Re: How to calculate/process this one?]
Re: Exponential notation [was: Re: How to calculate/process this one?]
- Subject: Re: Exponential notation [was: Re: How to calculate/process this one?]
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 27 Apr 2002 08:18:57 -0700
On 4/27/02 8:15 AM, I wrote:
>
to Stringify(x)
Sorry, in my haste to be first I forgot to reset tids. Rap self on knuckles.
to Stringify(x)
set x to x as string
set {tids, AppleScript's text item delimiters} to {{"E+"}, AppleScript's
text item delimiters}
set {n, z} to {text item 1 of x, (text item 2 of x) as integer}
set AppleScript's text item delimiters to {tids}
set i to character 1 of n
set d to text 3 thru -1 of n
set l to count d
repeat (z - l) times
set d to d & "0"
end repeat
return (i & d)
end Stringify
--
Paul Berkowitz
_______________________________________________
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.