Re: How do I get the decimals?
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.