• 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: "John W. Baxter" <email@hidden>
  • Date: Thu, 29 Jul 2004 18:57:41 -0700

On 7/29/2004 18:36, "LuKreme" <email@hidden> wrote:

> On 29 Jul 2004, at 16:35, Adam K. Wuellner wrote:
>> On Jul 29, 2004, at 4:55 PM, Michelle Steiner wrote:
>>> If you want just the fraction,
>>>
>>> 266 / 11 - 266 div 11
>>>
>>> --> 0.181818181818
>>>
>>
>> or a two-operation version:
>>
>> 266 mod 11 / 11
>

Probably equal precedence with left-to-right within the precedence group.
That seems to be how it acts, anyhow...

10 mod 2 * 3 --> 0
10 mod (2 * 3) --> 4
10 * (2 mod 3) --> 20
10 * 2 mod 3 --> 2

Manual not at hand.


---John
_______________________________________________
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.


  • Follow-Ups:
    • Re: How do I get the decimals?
      • From: Graff <email@hidden>
References: 
 >Re: How do I get the decimals? (From: LuKreme <email@hidden>)

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