I have the results of a division and I wish to discard the decimal portion of the resultant number.
How can I do this?
If you simply want to truncate the decimal portion, use a bitwise operator (.e.g
|0) which will treat its operand as a signed 32bit integer.
You may also be talking about the inaccuracy of decimal rounding with floating point arithmetic.