The opposite of 'mod'

RM richmondmathewson at gmail.com
Sun May 1 05:59:59 EDT 2016


It must be somewhere on the sunny side of 40 years since
I did anything like this: probably with Mrs Whitaker when I was
about 10 (1972) . . . and she, poor woman, has probably been
gathered to the Great Primary Maths Classroom in the sky.

So: here I am mucking around trying to convert Decimal numbers
into Hexadecimal numbers [nutty things I have done, #5,283] and
falling foul of the fact that I failed to remember what Mrs Whitaker
taught me [sin, sin and more sin] . . .

So:  13492571 mod 16 = 11 (or 'B').

Which is all very fine and dandy,

BUT, what is the non-mod bit?

I suppose . . . . the best thing to do would be to do this:

13492571 / 16 = 843285.6875 and somehow chop off the
numbers after the decimal point . . .

I would be most grateful if someone could tell me how to do that . . .

Richmond.




More information about the use-livecode mailing list