MCPcopy Create free account
hub / github.com/microsoft/typescript-go / Inf

Function Inf

internal/jsnum/jsnum.go:30–32  ·  view source on GitHub ↗
(sign int)

Source from the content-addressed store, hash-verified

28}
29
30func Inf(sign int) Number {
31 return Number(math.Inf(sign))
32}
33
34func (n Number) IsInf() bool {
35 return math.IsInf(float64(n), 0)

Callers 5

string_test.goFile · 0.85
FromStringFunction · 0.85
jsnum_test.goFile · 0.85
TestRemainderFunction · 0.85
TestExponentiateFunction · 0.85

Calls 1

NumberTypeAlias · 0.70

Tested by 2

TestRemainderFunction · 0.68
TestExponentiateFunction · 0.68