Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codeaashu/claude-code
/ isWholeNumber
Function
isWholeNumber
src/native-ts/yoga-layout/index.ts:2478–2481 ·
view source on GitHub ↗
(v: number)
Source
from the content-addressed store, hash-verified
2476
}
2477
2478
function
isWholeNumber(v: number): boolean {
2479
const
frac = v - Math.floor(v)
2480
return
frac < 0.0001 || frac > 0.9999
2481
}
2482
2483
function
roundValue(
2484
v: number,
Callers
1
roundLayout
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected