Re: math question

new topic     » goto parent     » topic index » view thread      » older message » newer message

An easy way to extract the low DWORD from an atom is to use the remainder()
function as in a = remainder(a, #100000000). Bitwise functions such as and_bits()
are restricted to numbers #FFFFFFFF or less for both parameters so can not be
used for this purpose. A potential problem is that remainder() will return a
fractional part if the original number is not an integer. The use of floor() or a
rounding function may be necessary if this is a possibility.

Larry Miller

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu