Arithmetic/Integer: Difference between revisions

→‎{{header|Nial}}: Nial example added
(→‎{{header|Nial}}: Nial example added)
Line 2,848:
Exponentiation: 1.197303672e-005
</pre>
 
=={{header|Nial}}==
 
Example tested with Q'Nial7.
 
Define new operator using an atlas of operatons:
<lang nial> arithmetic is OP A B{[first,last,+,-,*,quotient,mod] A B}</lang>
 
Test new operator:
<lang nial> 23 arithmetic 7
23 7 30 16 161 3 2</lang>
 
=={{header|Nim}}==
136

edits