• 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: Arthur J Knapp <email@hidden>
  • Date: Sun, 28 Apr 2002 17:58:45 -0400

> Date: Sat, 27 Apr 2002 23:03:27 +0100
> From: has <email@hidden>
> Subject: Re: Exponential notation [was: Re: How to calculate/process
> this one?]

> Arthur J Knapp wrote:
>> I would strongly recomend that you steal, oh, er, I mean *borrow* the
>> very robust numToStr() handler from ScriptBuilders:

> "Robust"? Bah...
>
> set AppleScript's text item delimiters to "foo"
> numToStr(1)
> --> "1foofoo"

Talk about unfair..., if every handler had to institute tids protection,
well, ya know, that would be a lot of, um..., protecting to do.


> on _getZeros() -- make a 1024-character string filled with zeros
> set str to "00000000"
> repeat 7 times
> set str to str & str
> end repeat
> str
> end _getZeros

Did you know that you can do the same thing with the tids?

on GetZeros() -- make a 1024-character string filled with zeros
set str to "00000000"
repeat 7 times
set text item delimiters to "0"
set str to str's text items
set text item delimiters to "00"
set str to "" & str
end repeat
set text item delimiters to {""}
return z
end GetZeros



> property _zeros : _getZeros()
>
> --mark -

Who is Mark? ;-)



{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
<mailto:email@hidden>
try
<http://www.LateNightSW.com/>
on error number -128
end try
}
_______________________________________________
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.

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