• 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: Deivy Petrescu <email@hidden>
  • Date: Sat, 1 May 2010 21:31:22 -0400

On Apr 29, 2010, at 9:58 AM, Richard Lake wrote:

> 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

Giving credits to Stan who gave credits to Shane who gave credits to someone else...

4999.0*12.5 as meters as text
---> "62487.5"


Or you can use  "bc" via shell.
However, the first solution is simpler.


Deivy Petrescu
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

  • Prev by Date: Re: Simple multiplication going bizarre
  • Next by Date: String to real conversion question
  • Previous by thread: Re: Simple multiplication going bizarre
  • Next by thread: String to real conversion question
  • Index(es):
    • Date
    • Thread