MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / FormatFixed

Function FormatFixed

extensions/formatting.cc:429–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429absl::StatusOr<absl::string_view> FormatFixed(
430 const Value& value, std::optional<int> precision,
431 std::string& scratch ABSL_ATTRIBUTE_LIFETIME_BOUND) {
432 CEL_ASSIGN_OR_RETURN(auto number, GetDouble(value, scratch));
433 return FormatDouble(number, precision,
434 /*use_scientific_notation=*/false, scratch);
435}
436
437absl::StatusOr<absl::string_view> FormatScientific(
438 const Value& value, std::optional<int> precision,

Callers

nothing calls this directly

Calls 1

FormatDoubleFunction · 0.70

Tested by

no test coverage detected