36 lines
367 B
Nim
36 lines
367 B
Nim
import ttmath
|
|
|
|
var a = 2.i256
|
|
var b = 2.i256
|
|
|
|
echo a + b
|
|
echo a - b
|
|
echo a * b
|
|
echo a / b
|
|
|
|
echo a < b
|
|
echo a > b
|
|
echo 3.i256 > b
|
|
echo a < 3.i256
|
|
echo a <= b
|
|
echo a >= b
|
|
a += b
|
|
echo a
|
|
a *= b
|
|
echo a
|
|
a -= b
|
|
echo a
|
|
a /= b
|
|
echo a
|
|
echo a mod b
|
|
echo a div b
|
|
echo a and b
|
|
echo a or b
|
|
echo a xor b
|
|
echo pow(a, 2)
|
|
echo a shl 2
|
|
echo a shr 2
|
|
echo a.getInt
|
|
echo -a
|
|
echo "02".i256
|