Quotient

Peter Haworth pete at lcsql.com
Tue Jun 23 17:33:07 EDT 2015


Thanks Phil and Devin.  I had no idea that div and the "/" operator yielded
different results.

On Tue, Jun 23, 2015 at 2:18 PM Devin Asay <devin_asay at byu.edu> wrote:

>
> On Jun 23, 2015, at 2:43 PM, Peter Haworth <pete at lcsql.com> wrote:
>
> > Does LC include an operator to return the quotient of a division
> > operation?  For example, I want to get 2 as the result of 12 divided by
> 5.
>
> Are you talking about the div operator?
>
>   put 12 div 5 --> 2
>
> And the mod operator gives the remainder:
>
>   put 13 mod 5 --> 3
>
>
> Devin
>
> Devin Asay
> Office of Digital Humanities
> Brigham Young University
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list