• 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: How do I get the decimals?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get the decimals?


  • Subject: Re: How do I get the decimals?
  • From: email@hidden
  • Date: Thu, 29 Jul 2004 17:21:55 -0500

On Jul 29, 2004, at 3:54 PM, Bernardo Hoehl wrote:
Example:

set x to 266 div 11--- returns 24

the true calculation should return 24.18181818 or a rest of 2

Question: how do I get the rest of the calculation?

The div operator returns integer values only. If you want the result as a real number, use / (forward slash) instead.

-Chris Griffith
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >How do I get the decimals? (From: Bernardo Hoehl <email@hidden>)

  • Prev by Date: Re: How do I get the decimals?
  • Next by Date: Re: How do I get the decimals?
  • Previous by thread: Re: How do I get the decimals?
  • Next by thread: Re: How do I get the decimals?
  • Index(es):
    • Date
    • Thread