Re: maths
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
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>) |