Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/araddon/qlbridge
/ NewNumberValue
Function
NewNumberValue
value/value.go:449–451 ·
view source on GitHub ↗
(v float64)
Source
from the content-addressed store, hash-verified
447
}
448
449
func
NewNumberValue(v float64) NumberValue {
450
return
NumberValue{v: v}
451
}
452
func
NewNumberNil() NumberValue {
453
v := NumberValue{v: math.NaN()}
454
return
v
Callers
15
ValueArray
Function · 0.92
toNumberEval
Function · 0.92
timeSecondsEval
Function · 0.92
sqrtEval
Function · 0.92
powerEval
Function · 0.92
avgEval
Function · 0.92
sumEval
Function · 0.92
builtins_test.go
File · 0.92
numberNodeToValue
Function · 0.92
evalBinary
Function · 0.92
walkUnary
Function · 0.92
operateNumbers
Function · 0.92
Calls
no outgoing calls
Tested by
6
TestValueNumber
Function · 0.68
TestCast
Function · 0.68
TestEqual
Function · 0.68
TestValueToString
Function · 0.68
TestValueToStrings
Function · 0.68
TestValueToFloat
Function · 0.68