From a1095a37abf0562f2b58e5cda8b30720a2af4851 Mon Sep 17 00:00:00 2001 From: steve02081504 Date: Tue, 24 Oct 2023 23:38:18 +0800 Subject: [PATCH] Update ubigfloat.hpp --- parts/header_file/files/elc/_files/bignum/bignum/ubigfloat.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parts/header_file/files/elc/_files/bignum/bignum/ubigfloat.hpp b/parts/header_file/files/elc/_files/bignum/bignum/ubigfloat.hpp index 30941440..dd7b614a 100644 --- a/parts/header_file/files/elc/_files/bignum/bignum/ubigfloat.hpp +++ b/parts/header_file/files/elc/_files/bignum/bignum/ubigfloat.hpp @@ -135,7 +135,7 @@ class ubigfloat{ { //对多余的精度进行舍入,仍然,这是可能有损的 const auto bitnum_now=get_bitnum(_numerator); - const ptrdiff_t diff=bitnum_now-basic_environment::threshold_precision_bit; + const ptrdiff_t diff=bitnum_now-bitnum_of(basic_environment::float_precision_base_t); if(diff>0){ _numerator>>=diff; ++_numerator;