0.0.62 ā¢ Published 3 years ago
Gives absolute value.
š¦ NPM,
šŗ GitHub,
š RunKit,
š Minified,
š Files,
š° JSDoc,
š Wiki.
This is part of package extra-bigint.
bigint.hcf(x);
// x: a bigint
const bigint = require('extra-bigint');
bigint.hcf(-5n);
// 5n
bigint.hcf(5n);
// 5n
bigint.hcf(0n);
// 0n
References