Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
691
export
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
toExponential
Function · 0.70
Calls
1
make
Function · 0.70
Tested by
no test coverage detected