[M3devel] integer division rounding?

hendrik at topoi.pooq.com hendrik at topoi.pooq.com
Sun Jan 17 21:19:14 CET 2010


On Sun, Jan 17, 2010 at 09:36:55AM +0000, Jay K wrote:
> 
> Modula-3 apparently specifies integer division as rounding down.
> http://www.modula3.com/cm3/doc/reference/arithmetic.html

In my experience, the rounding direction on division as supported by 
hardware seems is correlated with whether the processor uses one's 
complement or two's complement arithmetic.

-- hendrik



More information about the M3devel mailing list