MCPcopy
hub / github.com/google/mangle / Float64

Function Float64

ast/ast.go:318–320  ·  view source on GitHub ↗

Float64 constructs a constant symbol that contains a float64.

(floatNum float64)

Source from the content-addressed store, hash-verified

316
317// Float64 constructs a constant symbol that contains a float64.
318func Float64(floatNum float64) Constant {
319 return Constant{Float64Type, "", int64(math.Float64bits(floatNum)), nil, nil}
320}
321
322// Time constructs a time instant constant from nanoseconds since Unix epoch (1970-01-01 00:00:00 UTC).
323// The valid range is approximately 1678 to 2262 CE.

Callers 15

TestDisplayStringFunction · 0.92
TestParseTermPositiveFunction · 0.92
VisitFloatMethod · 0.92
TestHasTypeFunction · 0.92
ConvertValueFunction · 0.92
TestJSONtoStructFunction · 0.92
ProtoValueToConstantFunction · 0.92
TestEvalFloatPlusFunction · 0.92
TestReducerMinMaxSumFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestDisplayStringFunction · 0.74
TestParseTermPositiveFunction · 0.74
TestHasTypeFunction · 0.74
TestJSONtoStructFunction · 0.74
TestEvalFloatPlusFunction · 0.74
TestReducerMinMaxSumFunction · 0.74
TestEvalApplyFnFunction · 0.74
TestFloat64ToStringFunction · 0.74