Arithmetic/Integer: Difference between revisions

Content added Content deleted
(added php)
No edit summary
Line 384: Line 384:
putStrLn $ "a `quot` b = " ++ show (a `quot` b) -- truncates towards 0
putStrLn $ "a `quot` b = " ++ show (a `quot` b) -- truncates towards 0
putStrLn $ "a `rem` b = " ++ show (a `rem` b) -- same sign as first operand
putStrLn $ "a `rem` b = " ++ show (a `rem` b) -- same sign as first operand

=={{header|haXe}}==



=={{header|J}}==
=={{header|J}}==