Arithmetic/Integer: Difference between revisions
Content added Content deleted
m (→{{header|EasyLang}}: Added exponentiation operator) |
(→{{header|Elena}}: Added exponentiation operator) |
||
Line 1,683: | Line 1,683: | ||
console.printLine(a," / ",b," = ",a / b); // truncates towards 0 |
console.printLine(a," / ",b," = ",a / b); // truncates towards 0 |
||
console.printLine(a," % ",b," = ",a.mod:b); // matches sign of first operand |
console.printLine(a," % ",b," = ",a.mod:b); // matches sign of first operand |
||
console.printLine(a," ^ ",b," = ",a ^ b); |
|||
}</lang> |
}</lang> |
||