Skip to content

Commit

Permalink
Update ubigfloat.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Oct 24, 2023
1 parent f8c8d91 commit a1095a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class ubigfloat{
{
//对多余的精度进行舍入,仍然,这是可能有损的
const auto bitnum_now=get_bitnum(_numerator);
const ptrdiff_t diff=bitnum_now-basic_environment::threshold_precision_bit<T>;
const ptrdiff_t diff=bitnum_now-bitnum_of(basic_environment::float_precision_base_t<T>);
if(diff>0){
_numerator>>=diff;
++_numerator;
Expand Down

0 comments on commit a1095a3

Please sign in to comment.