What programming languages support arbitrary precision arithmetic?
What programming languages support arbitrary precision arithmetic and could you give a short example of how to print an arbitrary number of digits? ...
What programming languages support arbitrary precision arithmetic and could you give a short example of how to print an arbitrary number of digits? ...
Has arbitrary-precision arithmetic affected numerical analysis software? I feel that most numerical analysis software keeps on using the same floats and doubles. If I'm right, I'd love to know the reason, as in my opinion there are some calculations that can benefit from the use of arbitrary-precision arithmetic, particularly when it i...
What class should I use for representation of money to avoid most rounding errors? Should I use Decimal, or a simple built-in number? Is there any existing Money class with support for currency conversion that I could use? Any pitfalls that I should avoid? ...
I have been using python's native bignums for an algorithm and decided to try and speed it up by converting it to C++. When I used long longs, the C++ was about 100x faster than the python, but when I used GMP bindings in C++, it was only 10x faster than the python (for the same cases that fit in long longs). Is there a better bignum im...
I'm using long double in a C program to compute 2D images of the Mandelbrot Set but wish to have further precision to zoom deeper. Are there any performance gains to be had from an arbitrary precision maths library that can restrict the amount of precision as required, rather than leaping from long double precision straight into arbitra...
Is there a pure python implementation of fractions.Fraction that supports longs as numerator and denominator? Unfortunately, exponentiation appears to be coded in to return a float (ack!!!), which should at least support using decimal.Decimal. If there isn't, I suppose I can probably make a copy of the library and try to replace occurre...
Is there any standard way to use integers of arbitrary length in Perl? I am working on code that generates x64 assembly for tests, and I'm tired of manipulating 32 bits at a time. I'm using Perl 5.10.0, for what it's worth. ...
I'm writing a PHP library that has a Number class that uses the bcmath extension for arbitrary precision. I have two questions: How much slower is bcmath compared to using the built-in int and float types? bcmath has an optional scale argument (that defaults to 3 digits). For an general purpose Number class that anyone could use, wha...
I asked a question earlier about how to deal with rounding issues with floating point numbers in PHP, and was pointed to the bc and gmp libraries. I've looked at the functions in these libraries but nothing jumped out at me when I was looking for one to round off the number. How do you accurately round using these libraries? ...
How the heck does Ruby do this? Does Jörg or anyone else know what's happening behind the scenes? Unfortunately I don't know C very well so bignum.c is of little help to me. I was just kind of curious it someone could explain (in plain English) the theory behind whatever miracle algorithm its using. irb(main):001:0> 999**999 3680...
I would like to add 2 arbitrarily sized integers in C++. How can I go about doing this? ...
Is there a way to use big integers or arbitrary precision types in vala? ...
Can I work with large numbers (more than 10^400) with built-in method in Delphi? ...
Is there an arbitrary-precision alternative to money_format available that could take a string instead of a float as a parameter? It's not that I plan on doing calculations on trillions of monetary units, but after going through the trouble to properly handle monetary arithmetic without abusing floats, it'd be nice to have a function t...