MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / isFiniteFloat

Function isFiniteFloat

pkg/api/utils.go:360–362  ·  view source on GitHub ↗
(value float64)

Source from the content-addressed store, hash-verified

358}
359
360func isFiniteFloat(value float64) bool {
361 return !math.IsNaN(value) && !math.IsInf(value, 0)
362}
363
364// SafeBoolValue safely converts various types to boolean representation.
365//

Callers 4

getFloatFunction · 0.85
SafeFloatValueFunction · 0.85
GetVmStatusMethod · 0.85
GetDetailedVmInfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected