• 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
String to real conversion question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

String to real conversion question


  • Subject: String to real conversion question
  • From: Bert Groeneveld <email@hidden>
  • Date: Sun, 2 May 2010 17:19:42 +0200

-- value x and y are always strings (please assume they are always coercable to real).

set x to "0.25" -- string
--set x to x as number -- z still outputs 100
--set x to x as real -- z still outputs 100
set y to "4" -- string
set z to x * y -- how can I output z = 1 here, instead of z = 100?

—

Bert.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: String to real conversion question
      • From: Michelle Steiner <email@hidden>
    • Re: String to real conversion question
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Simple multiplication going bizarre
  • Next by Date: Re: String to real conversion question
  • Previous by thread: Re: Simple multiplication going bizarre
  • Next by thread: Re: String to real conversion question
  • Index(es):
    • Date
    • Thread