We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b572cf commit 8c5462cCopy full SHA for 8c5462c
docs/Runtime Environment/Bigint.md
@@ -66,6 +66,14 @@ local bigint = require "pluto:bigint"
66
print(new bigint(10) % new bigint(3)) --> 1
67
```
68
69
+---
70
+### `__unm`
71
+Returns a new bigint with the sign bit flipped.
72
+```pluto
73
+local bigint = require "pluto:bigint"
74
+print(-new bigint(10)) --> -10
75
+```
76
+
77
---
78
### `bigint.pow`, `__pow`
79
Performs expontentiation on two bigints. Returns a new bigint.
0 commit comments