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

Method Decimal

ext/formatting_v2.go:646–646  ·  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)

Source from the content-addressed store, hash-verified

644 // Decimal takes a ref.Val and a string representing the current locale identifier
645 // and returns the Val formatted as a decimal integer, or an error if one occurred.
646 Decimal(ref.Val) (string, error)
647
648 // Fixed takes an int pointer representing precision (or nil if none was given) and
649 // 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