Storing numbers with higher precision in C

后端 未结 3 1485
[愿得一人]
[愿得一人] 2021-01-20 20:49

I am writing a program in which I need to store numbers with a very high precision(around 10^-10) and then further use them a parameter( create_bloomfilte

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-20 21:41

    Try GNU MPFR library and GNU GMP library

    The MPFR library is a C library for multiple-precision floating-point computations with correct rounding.

    GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface.

提交回复
热议问题