Jump to content

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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.