| 435 | } |
| 436 | |
| 437 | absl::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 | |
| 445 | absl::StatusOr<std::pair<int64_t, absl::string_view>> ParseAndFormatClause( |
| 446 | absl::string_view format, const Value& value, int max_precision, |
nothing calls this directly
no test coverage detected