Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/151.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 将mpfr或bigint数据类型转换为定点_C++_Gmp_Fixed Point_Mpfr - Fatal编程技术网

C++ 将mpfr或bigint数据类型转换为定点

C++ 将mpfr或bigint数据类型转换为定点,c++,gmp,fixed-point,mpfr,C++,Gmp,Fixed Point,Mpfr,我有一个简单的会计程序,它使用GMP和MPFR中的bigint进行浮动。现在我想通过程序实现定点算术,我已经为这个程序定义了我自己的类fixed,并使用合适的操作。为了避免重写大部分代码,最有效的方法是什么

我有一个简单的会计程序,它使用GMP和MPFR中的bigint进行浮动。现在我想通过程序实现定点算术,我已经为这个程序定义了我自己的类fixed,并使用合适的操作。为了避免重写大部分代码,最有效的方法是什么