mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-28 13:19:48 +01:00
Fix dragonbox integration
This commit is contained in:
@@ -2307,6 +2307,10 @@ FMT_SAFEBUFFERS decimal_fp<T> to_decimal(T x) FMT_NOEXCEPT {
|
||||
goto small_divisor_case_label;
|
||||
}
|
||||
}
|
||||
if (ret_value.significand == 0) {
|
||||
ret_value.exponent = 0;
|
||||
return ret_value;
|
||||
}
|
||||
ret_value.exponent = minus_k + float_info<T>::kappa + 1;
|
||||
|
||||
// We may need to remove trailing zeros
|
||||
|
||||
Reference in New Issue
Block a user