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 8c5462c commit 31f7271Copy full SHA for 31f7271
docs/Runtime Environment/Bigint.md
@@ -74,6 +74,14 @@ local bigint = require "pluto:bigint"
74
print(-new bigint(10)) --> -10
75
```
76
77
+---
78
+### `bigint.abs`
79
+Returns a new bigint with the sign bit zeroed.
80
+```pluto
81
+local bigint = require "pluto:bigint"
82
+print(new bigint(-10):abs()) --> 10
83
+```
84
+
85
---
86
### `bigint.pow`, `__pow`
87
Performs expontentiation on two bigints. Returns a new bigint.
0 commit comments