MCPcopy Index your code
hub / github.com/expr-lang/expr / AsFloat64

Function AsFloat64

expr.go:105–110  ·  view source on GitHub ↗

AsFloat64 tells the compiler to expect a float64 result.

()

Source from the content-addressed store, hash-verified

103
104// AsFloat64 tells the compiler to expect a float64 result.
105func AsFloat64() Option {
106 return func(c *conf.Config) {
107 c.Expect = reflect.Float64
108 c.ExpectAny = true
109 }
110}
111
112// DisableIfOperator disables the `if ... else ...` operator syntax so a custom
113// function named `if(...)` can be used without conflicts.

Callers 4

ExampleAsFloat64Function · 0.92
ExampleAsFloat64_errorFunction · 0.92
TestCompile_ExpectFunction · 0.92

Calls

no outgoing calls

Tested by 4

ExampleAsFloat64Function · 0.74
ExampleAsFloat64_errorFunction · 0.74
TestCompile_ExpectFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…