Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ unsafeToNumber
Function
unsafeToNumber
packages/effect/src/BigDecimal.ts:1057–1057 ·
view source on GitHub ↗
(n: BigDecimal)
Source
from the content-addressed store, hash-verified
1055
* @category conversions
1056
*/
1057
export
const
unsafeToNumber = (n: BigDecimal): number => Number(format(n))
1058
1059
/**
1060
* Checks
if
a given `BigDecimal` is an integer.
Callers
nothing calls this directly
Calls
2
Number
Interface · 0.85
format
Function · 0.70
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…