[erlang-questions] Mod function that returns quotient remainder?

fbg111 <>
Thu Sep 7 06:08:35 CEST 2006


Hello, is there a 'mod' that returns the remainder of a quotient?  eg, 

    mod(5/2) = 1?  

I know you can find out if there is a remainder by 

    if trunc(Y / 2) * 2 == Y

but is there a way to return the actual remainder?  Thanks,

Byron
-- 
View this message in context: http://www.nabble.com/Mod-function-that-returns-quotient-remainder--tf2231023.html#a6183915
Sent from the Erlang Questions forum at Nabble.com.




More information about the erlang-questions mailing list