| 764 | } |
| 765 | |
| 766 | double DoubleRound(double value, int decimals) { |
| 767 | double scale = pow(10.0, decimals); // e.g. 10^10 for 10 decimal places |
| 768 | return std::round(value * scale) / scale; |
| 769 | } |
| 770 | |
| 771 | std::string DoubleToString(double dd, short decimals, bool trim_right_zeros) { |
| 772 | char xx[44]; |
no outgoing calls
no test coverage detected