Arithmetic/Integer: Difference between revisions

(Initial program for GEORGE)
Line 850:
consoleEx << a << " * " << b << " = " << a * b << "%n".
consoleEx << a << " / " << b << " = " << a / b << "%n". // truncates towards 0
consoleEx << a << " %% " << b << " = " << (a~mathOpintOp mod:b) << "%n". // matches sign of first operand
].</lang>
 
Anonymous user