• 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: What is this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is this?


  • Subject: Re: What is this?
  • From: Emmanuel <email@hidden>
  • Date: Sat, 26 Feb 2005 23:56:38 +0100

At 4:07 PM -0500 2/26/05, deivy petrescu wrote:
I found it very interesting but not explainable...

<script>
set x to 9
set {astid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "E"}
set zpow to 1 * (text item 2 of (x as text))
set AppleScript's text item delimiters to astid


return {zpow, AppleScript's text item delimiters, x as string}
--->{3.08055323620131E-306, "", "9"}
</script>

By the way, one can change 9 by any other number, the value for zpower is always around the same order of maginitude.
I checked the script above in two different computers.

waow.

You can make it a one-liner:

1 * (character 2 of ("9" as text))

BTW OMM I get 5 times more: 1.58331334099219E-305.

Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: What is this?
      • From: Bill Briggs <email@hidden>
References: 
 >What is this? (From: deivy petrescu <email@hidden>)

  • Prev by Date: Converting 'file:/' URL to MacOS path name...
  • Next by Date: Re: Converting 'file:/' URL to MacOS path name...
  • Previous by thread: What is this?
  • Next by thread: Re: What is this?
  • Index(es):
    • Date
    • Thread