Re: math question
- Posted by Larry Miller <larrymiller at sasktel.net> Nov 02, 2005
- 440 views
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