• 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: Simple multiplication going bizarre
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Simple multiplication going bizarre (From: Richard Lake <email@hidden>)

  • Prev by Date: Re: Simple multiplication going bizarre
  • Next by Date: Re: Simple multiplication going bizarre
  • Previous by thread: Re: Simple multiplication going bizarre
  • Next by thread: Re: Simple multiplication going bizarre
  • Index(es):
    • Date
    • Thread