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

Method Decimal

ext/formatting.go:746–746  ·  view source on GitHub ↗

Decimal takes a ref.Val and a string representing the current locale identifier and returns the Val formatted as a decimal integer, or an error if one occurred.

(ref.Val, string)

Source from the content-addressed store, hash-verified

744 // Decimal takes a ref.Val and a string representing the current locale identifier
745 // and returns the Val formatted as a decimal integer, or an error if one occurred.
746 Decimal(ref.Val, string) (string, error)
747
748 // Fixed takes an int pointer representing precision (or nil if none was given) and
749 // returns a function operating in a similar manner to String and Decimal, taking a

Callers

nothing calls this directly

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