MCPcopy Create free account
hub / github.com/cel-expr/cel-go / StringsMaxPrecision

Function StringsMaxPrecision

ext/strings.go:381–386  ·  view source on GitHub ↗

StringsMaxPrecision configures the maximum precision for floating-point format clauses. If not set, the default is 100 for version >= 5, and no limit for earlier versions.

(limit int)

Source from the content-addressed store, hash-verified

379//
380// If not set, the default is 100 for version >= 5, and no limit for earlier versions.
381func StringsMaxPrecision(limit int) StringsOption {
382 return func(lib *stringLib) *stringLib {
383 lib.maxPrecision = limit
384 return lib
385 }
386}
387
388// CompileOptions implements the Library interface method.
389func (lib *stringLib) CompileOptions() []cel.EnvOption {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected