8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a15b83 commit 31cab78Copy full SHA for 31cab78
src/number/bigint.ts
@@ -0,0 +1,7 @@
1
+export const BigIntMath = {
2
+ abs: (a: bigint) => (a < 0n ? -a : a),
3
+ max: (a: bigint, b: bigint) => (a > b ? a : b),
4
+ min: (a: bigint, b: bigint) => (a < b ? a : b),
5
+ pow: (a: bigint, b: bigint) => a ** b,
6
+ sign: (a: bigint) => (a === 0n ? 0n : (a < 0n ? -1n : 1n)),
7
+}
src/number/index.ts
@@ -1,3 +1,5 @@
+export * from './bigint'
export * from './format'
export * from './number'
+
export type * from './types'
0 commit comments