• 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: maths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: maths


  • Subject: Re: maths
  • From: Luther Fuller <email@hidden>
  • Date: Wed, 18 Apr 2012 15:58:46 -0500

On Apr 18, 2012, at 3:19 PM, Alex Zavatone wrote:

It's a string.  You got the "word" of a string of text.  That is a string operation.  
You now have to tell it to be a number or AS will børk when trying to subtract a string from a number.

I have always noticed that strings will behave correctly as numbers whenever they can.
This little test, for example ...

set x to 123
set y to word 3 of "value is 56.3 when"
x - y --> 66.7

has no problem with strings. Perhaps something else is going on here?

 _______________________________________________
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: maths
      • From: Alex Zavatone <email@hidden>
References: 
 >maths (From: Javi Pérez <email@hidden>)
 >Re: maths (From: Alex Zavatone <email@hidden>)
 >RE: maths (From: Javi Pérez <email@hidden>)
 >Re: maths (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: maths
  • Next by Date: Re: maths
  • Previous by thread: Re: maths
  • Next by thread: Re: maths
  • Index(es):
    • Date
    • Thread