MCPcopy Index your code
hub / github.com/Effect-TS/effect / abs

Function abs

packages/effect/src/BigDecimal.ts:691–691  ·  view source on GitHub ↗
(n: BigDecimal)

Source from the content-addressed store, hash-verified

689 * @category math
690 */
691export const abs = (n: BigDecimal): BigDecimal => n.value < bigint0 ? make(-n.value, n.scale) : n
692
693/**
694 * Provides a negate operation on `BigDecimal`s.

Callers 1

toExponentialFunction · 0.70

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected