• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Exponential notation [was: Re: How to calculate/process this one?]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Exponential notation [was: Re: How to calculate/process this one?] (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Exponential notation [was: Re: How to calculate/process this one?]
  • Next by Date: Re: Exponential notation [was: Re: How to calculate/process this one?]
  • Previous by thread: Re: Exponential notation [was: Re: How to calculate/process this one?]
  • Next by thread: Re: Exponential notation [was: Re: How to calculate/process this one?]
  • Index(es):
    • Date
    • Thread