The opposite of 'mod'

Monte Goulding monte at appisle.net
Sun May 1 06:19:32 EDT 2016


div

Sent from my iPhone

> On 1 May 2016, at 7:59 PM, RM <richmondmathewson at gmail.com> wrote:
> 
> 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.
> 
> _______________________________________________
> 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