Quotient

Richmond richmondmathewson at gmail.com
Mon Jun 24 15:26:46 EDT 2019


Well . . . Um . . . div

But that is alright as far as sums such as 28 div 3 go . . .

But it is not much cop when it comes to finding
the quotient of some long and complicated bit of Mathematics.

On 24.06.19 22:22, Richmond 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.





More information about the Use-livecode mailing list