Re: Simple multiplication going bizarre
Re: Simple multiplication going bizarre
- Subject: Re: Simple multiplication going bizarre
- From: Thomas Fischer <email@hidden>
- Date: Thu, 29 Apr 2010 16:53:25 +0200
Hi Richard,
according to the ASLG:
"Real numbers that are greater than or equal to 10,000.0 or less than or equal to 0.0001 are converted to exponential notation when scripts are compiled. "
You can do something like
49990 * 12.5 as integer
to obtain 624875 and proceed from there, if you want to avoid the exponential notation.
Cheers
Thomas Fischer
Am 29.04.2010 um 15:58 schrieb Richard Lake:
> Hello,
>
> 4999.0*12.5 = 62487.5
>
> But applescript returns:
>
> 6.24875E+4
>
> ?????
>
> How do I get around this oddity?
>
> Thanks
>
> Richard Lake
> Marketing Manager
>
> Tel: 0800 158 3898 | Email: email@hidden
>
> _______________________________________________
> 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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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