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

Method Fixed

ext/formatting_v2.go:652–652  ·  view source on GitHub ↗

Fixed takes an int pointer representing precision (or nil if none was given) and returns a function operating in a similar manner to String and Decimal, taking a ref.Val and locale and returning the appropriate string. A closure is returned so precision can be set without needing an additional funct

(int)

Source from the content-addressed store, hash-verified

650 // ref.Val and locale and returning the appropriate string. A closure is returned
651 // so precision can be set without needing an additional function call/configuration.
652 Fixed(int) func(ref.Val) (string, error)
653
654 // Scientific functions identically to Fixed, except the string returned from the closure
655 // is expected to be in scientific notation.

Callers 1

parseFormattingClauseV2Function · 0.65

Implementers 4

stringFormatterV2ext/formatting_v2.go
stringFormatCheckerV2ext/formatting_v2.go
stringFormatterext/formatting.go
stringFormatCheckerext/formatting.go

Calls

no outgoing calls

Tested by

no test coverage detected