-
gmp-wasm
Fork of the GNU Multiple Precision Arithmetic Library (GMP), suitable for compilation into WebAssembly.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Because, depending on the architecture, your unsigned long might not be long enough to hold 19!. A 64-bit unsigned long would be sufficient, but a 32-bit would not be. You could try uint64_t instead (use #include ), or, if that isn't sufficient, use an arbitrary-precision library like GMP.
Large? Factorials get very large very quickly. Do you need pointers to a bignum library? https://github.com/kokke/tiny-bignum-c
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.
Related posts
-
Library for arithmetic operations on integers represented by arrays
-
Floats Are Weird
-
Patriot Missile Floating point Software Problem lead to deaths 28 Americans
-
Decoding Why 0.6 + 0.3 = 0.8999999999999999 in JS and How to Solve?
-
Front-End Dilemmas: Tackling Precision Problems in JavaScript with Decimal.js