Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ isInteger
Function
isInteger
packages/effect/src/BigDecimal.ts:1500–1500 ·
view source on GitHub ↗
(n: BigDecimal)
Source
from the content-addressed store, hash-verified
1498
* @since 2.0.0
1499
*/
1500
export
const
isInteger = (n: BigDecimal): boolean => normalize(n).scale <= 0
1501
1502
/**
1503
* Checks whether a given `BigDecimal` is `0`.
Callers
nothing calls this directly
Calls
1
normalize
Function · 0.70
Tested by
no test coverage detected