Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ toNumberUnsafe
Function
toNumberUnsafe
packages/effect/src/BigDecimal.ts:1478–1478 ·
view source on GitHub ↗
(n: BigDecimal)
Source
from the content-addressed store, hash-verified
1476
* @since 4.0.0
1477
*/
1478
export
const
toNumberUnsafe = (n: BigDecimal): number => Number(format(n))
1479
1480
/**
1481
* Checks whether a given `BigDecimal` is an integer.
Callers
nothing calls this directly
Calls
2
Number
Interface · 0.70
format
Function · 0.70
Tested by
no test coverage detected