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

Function FormatScientific

extensions/formatting.cc:437–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437absl::StatusOr<absl::string_view> FormatScientific(
438 const Value& value, std::optional<int> precision,
439 std::string& scratch ABSL_ATTRIBUTE_LIFETIME_BOUND) {
440 CEL_ASSIGN_OR_RETURN(auto number, GetDouble(value, scratch));
441 return FormatDouble(number, precision,
442 /*use_scientific_notation=*/true, scratch);
443}
444
445absl::StatusOr<std::pair<int64_t, absl::string_view>> ParseAndFormatClause(
446 absl::string_view format, const Value& value, int max_precision,

Callers

nothing calls this directly

Calls 1

FormatDoubleFunction · 0.70

Tested by

no test coverage detected