The opposite of 'mod'

RM richmondmathewson at gmail.com
Sun May 1 06:11:00 EDT 2016


Hey; My old friend Nelly the Elephant:

trunc

R.

On 1.05.2016 13:08, RM wrote:
> And before somebody mentions 'numberFormat" it turns 843285.6875 into 
> 843286
> because it rounds the 0.6875 up: fioch!
>
> R.
>
> On 1.05.2016 12:59, RM 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.
>





More information about the use-livecode mailing list