change two missed long double literals into doubles

This commit is contained in:
Thomas Fussell 2017-09-10 09:36:04 -04:00
parent a21d659247
commit bf3e278ea1

View File

@ -1183,7 +1183,7 @@ std::string number_formatter::fill_placeholders(const format_placeholders &p, do
if (p.thousands_scale > 0) if (p.thousands_scale > 0)
{ {
number /= std::pow(1000.L, p.thousands_scale); number /= std::pow(1000.0, p.thousands_scale);
} }
auto integer_part = static_cast<int>(number); auto integer_part = static_cast<int>(number);
@ -1273,7 +1273,7 @@ std::string number_formatter::fill_scientific_placeholders(const format_placehol
} }
} }
number /= std::pow(10.L, logarithm); number /= std::pow(10.0, logarithm);
auto integer = static_cast<int>(number); auto integer = static_cast<int>(number);
auto fraction = number - integer; auto fraction = number - integer;