Quotient

Pi Digital sean at pidigital.co.uk
Tue Jun 25 06:08:58 EDT 2019


In short form then:

Put 23 into tX;  Put 8 into tY;

Put tX & “/“ & tY && “=“ && (tX div tY) && (tX mod tY) & “/“ & tY into tCalcString

Sean Cole
Pi Digital Prod Ltd

> On 25 Jun 2019, at 09:09, Mark Waddingham via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Q := X div Y
>  R := X mod Y
> 
> Then you have that:
> 
>  X/Y = Q + R/Y



More information about the Use-livecode mailing list