fix to_string(FloatType): for large float value

This commit is contained in:
bolero-MURAKAMI 2013-08-06 00:05:45 +09:00
parent 9883dacfe2
commit fc5e510c3c
2 changed files with 67 additions and 41 deletions

View file

@ -93,7 +93,7 @@ namespace sprout {
: sprout::detail::float_to_string<Elem>(
sprout::detail::float_round_at(val < 0 ? -val : val, sprout::detail::decimal_places_length),
sprout::math::signbit(val),
sprout::detail::float_digits(val)
sprout::detail::float_digits_checked(val)
)
;
}