ID photo of Ciro Santilli taken in 2013 right eyeCiro Santilli OurBigBook logoOurBigBook.com  Sponsor 中国独裁统治 China Dictatorship 新疆改造中心、六四事件、法轮功、郝海东、709大抓捕、2015巴拿马文件 邓家贵、低端人口、西藏骚乱
gmp/hello.c
/* Adapted from:
 * https://en.wikipedia.org/w/index.php?title=GNU_Multiple_Precision_Arithmetic_Library&oldid=1213913871
 * Tested on GMP 6.3.0, Ubuntu 24.04.
 */

#include <stdio.h>
#include <gmp.h>

int main(void) {
    mpz_t x, y, result;
    mpz_init_set_str(x, "7612058254738945", 10);
    mpz_init_set_str(y, "9263591128439081", 10);
    mpz_init(result);
    mpz_mul(result, x, y);
    gmp_printf("%Zd * %Zd = %Zd\n", x, y, result);

    /* Cleanup */
    mpz_clear(x);
    mpz_clear(y);
    mpz_clear(result);
    return 0;
}

Ancestors (13)

  1. GMP example
  2. GNU Multiple Precision Arithmetic Library
  3. List of arbitrary-precision arithmetic sofware
  4. Arbitrary-precision arithmetic
  5. Numerical software
  6. Scientific software
  7. Scientific computing
  8. Software
  9. Computer
  10. Information technology
  11. Area of technology
  12. Technology
  13. Ciro Santilli's Homepage