div(x,y) # truncated division; quotient rounded towards zero fld(x,y) # floored division; quotient rounded towards -Inf
rem(x,y) # remainder; satisfies x == div(x,y)*y + rem(x,y); sign matches x mod(x,y) # modulus; satisfies x == fld(x,y)*y + mod(x,y); sign matches y
divrem(x,y) # returns (div(x,y),rem(x,y)) ## Lotus 123 convention fldmod(x,y) # returns (fld(x,y),mod(x,y)) ## Excel convention