Quotient
Mark Waddingham
mark at livecode.com
Mon Jun 24 15:26:08 EDT 2019
Try ‘div’ :)
Mark.
Sent from my iPhone
> On 24 Jun 2019, at 20:22, Richmond via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Err . . .
>
> So; I have several numbers that have to be divided by other numbers:
>
> 28 / 3
>
> 301 / 10
>
> 44 / 6
>
> now these will all yield "awkward numbers" consisting of a quotient and a remainder:
>
> 9.33
>
> 30.1
>
> 7.33
>
> Now I know one could be "ever so slightly potty" in LiveCode to get the quotient by doing something
> like this:
>
> put 28/3 into XX
> put (28 mod 3) into YY
> put (XX - YY) into ZZ
>
> but that seems a long way round . . . but I cannot work out what the equivalent term to 'mod'
> is to get the quotient in LiveCode.
>
> Richmond.
>
> _______________________________________________
> 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