| 389 | } |
| 390 | |
| 391 | String FormattedJson::toFormattedDouble() const { |
| 392 | if (!isType(Json::Type::Float)) |
| 393 | throw JsonException::format("Cannot call toFormattedDouble on Json type {}, must be Float", typeName()); |
| 394 | if (m_formatting.isValid()) |
| 395 | return *m_formatting; |
| 396 | return toJson().repr(); |
| 397 | } |
| 398 | |
| 399 | String FormattedJson::toFormattedInt() const { |
| 400 | if (!isType(Json::Type::Int)) |
no test coverage detected