| 153 | } |
| 154 | |
| 155 | long int getPrecision(const Cantera::AnyValue& precisionSource) |
| 156 | { |
| 157 | long int precision = 15; |
| 158 | auto& userPrecision = precisionSource.getMetadata("precision"); |
| 159 | if (userPrecision.is<long int>()) { |
| 160 | precision = userPrecision.asInt(); |
| 161 | } |
| 162 | return precision; |
| 163 | } |
| 164 | |
| 165 | string formatDouble(double x, long int precision) |
| 166 | { |