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

Method Decimal

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

Decimal implements formatStringInterpolator.Decimal.

(arg ref.Val, locale string)

Source from the content-addressed store, hash-verified

275
276// Decimal implements formatStringInterpolator.Decimal.
277func (c *stringFormatter) Decimal(arg ref.Val, locale string) (string, error) {
278 return formatDecimal(arg, locale)
279}
280
281// Fixed implements formatStringInterpolator.Fixed.
282func (c *stringFormatter) Fixed(precision *int) func(ref.Val, string) (string, error) {

Callers

nothing calls this directly

Calls 1

formatDecimalFunction · 0.85

Tested by

no test coverage detected