| 483 | // To String |
| 484 | template <> |
| 485 | cs::string_borrower to_string<cs::numeric>(const cs::numeric &val) |
| 486 | { |
| 487 | if (!val.is_integer()) { |
| 488 | std::stringstream ss; |
| 489 | std::string str; |
| 490 | ss << std::setprecision(cs::current_process->output_precision) << val.as_float(); |
| 491 | ss >> str; |
| 492 | return std::move(str); |
| 493 | } |
| 494 | else |
| 495 | return std::to_string(val.as_integer()); |
| 496 | } |
| 497 | |
| 498 | template <> |
| 499 | cs::string_borrower to_string<char>(const char &c) |
nothing calls this directly
no test coverage detected