Re: Informal poll
Re: Informal poll
- Subject: Re: Informal poll
- From: Shane Stanley <email@hidden>
- Date: Tue, 17 Jun 2014 23:41:38 +1000
On 17 Jun 2014, at 10:49 pm, Emmanuel LEVY <email@hidden> wrote:
I confirm, here again ECMA makes a better job than Apple, look:
callJavaScript (make new _javascript_) script "'_javascript_: pi = ' + Math.PI" -- "_javascript_: pi = 3.141592653589793" "AppleScript: pi = " & pi -- "AppleScript: pi = 3.14159265359"
16 vs 12 digits.
I'm not sure that's an accurate comparison. Just because AppleScript coerces a real to a string with 12 digits, doesn't mean the number itself is stored with only 12 digits of precision. You can show that it's not the case fairly easily:
3.14159265359 - pi Or:
pi * 10000 --> 3.14159265358979E+4
That suggests *possibly* the loss of one digit.
I think there are bigger fish to fry...
(But yes, I agree completely that we shouldn't need to resort to ASObjC or additions for most of the things they're used for.)
|
_______________________________________________
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