36 lines
368 B
Nim
36 lines
368 B
Nim
import ttmath
|
|
|
|
var a = 2.u256
|
|
var b = 2.u256
|
|
|
|
echo a + b
|
|
echo a - b
|
|
echo a * b
|
|
echo a / b
|
|
|
|
echo a < b
|
|
echo a > b
|
|
echo 3.u256 > b
|
|
echo a < 3.u256
|
|
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.getUInt
|
|
echo -a
|
|
echo "02".u256
|