```⍝ Arithmetic on large integers:

23 -big 24
¯1
199999 ×big 2
399998
¯200 -big 20
¯220
¯200 +big 20
¯180
¯20 +big 200
180
×big ¯20
¯1
|big ¯200000
200000
+big -23
¯23
5<big 8
1
3>big ¯2
1
¯3>big¯2
0
¯3=big¯3
1
5>big 8
0
3<big ¯2
0
¯3<big¯2
1
¯3≠big¯3
0
5≤big 8
1
3≥big ¯2
1
¯3≥big¯2
0
¯3≥big¯3
1
5≥big 8
0
3≤big ¯2
0
¯3≤big¯2
1
¯3≤big¯3
1
'23000000000000000000'-big 1
22999999999999999999

'199999999999999999999999' ×big 2
399999999999999999999998

'19999999999' <big '20000000000'
1
×big '¯20000000000000'
¯1
|big '¯199999999999999999999999'
199999999999999999999999
300 ÷big 20
15
2|big 21
1
3 |big ¯5
1
3|big  5
2
¯3|big ¯4
¯1
¯3|big 4
¯2
'58000000000000000001' ÷big 10
5800000000000000000

'43791445640669401888930412'÷big'¯354678908876'
¯123467859364537
10|big'1000000000000001'
1
'9000000000001' |big '2000000000002222222222244'
4000000000022

⍝ regression tests:

0|big 3
3
3|big 0
0
3|big 3         ⍝ John Moore's case.
0
'0'-big'1234'   ⍝ Brian's case
¯1234

Back to: code

Back to: Workspaces
```