1e268f1808b369bf04e26b73b42944cf15022680
in some cases when in the output string the exponent should be equal zero the method changes the exponent to one so the last digit from the mantissa was lost sample: Big<1,1> a; a.info = 0; a.mantissa = 2147483649u; // (bin) 10000000000000000000000000000001 // first and last bit in the mantissa is set a.exponent = 0; std::cout << a << std::endl; priovious result: 2147483640 it was treated as 214748364e+1 also the method has been a little improved git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@312 e52654a7-88a9-db11-a3e9-0013d4bc506e
A bignum library for C++ TTMath is a small library which allows one to perform arithmetic operations with big unsigned integer, big signed integer and big floating point numbers. It provides standard mathematical operations like adding, subtracting, multiplying, dividing. With the library also goes a mathematical parser to help you solving mathematical expressions. TTMath is developed under the BSD licence which means that it is free for both personal and commercial use. The main goal of the library is to allow one to use big values in the same way as the standard types like int or float. It does not need to be compiled first because the whole library is written as the C++ templates. This means only C++ developers can use this library and one thing they have to do is to use 'include' directive of the preprocessor. How big the values can be is set at compile time. Author: Tomasz Sowa <t.sowa@ttmath.org> WWW: http://www.ttmath.org Contributors: Christian Kaiser <chk@online.de>
Description
TTMath is a small library which allows one to perform arithmetic operations with big unsigned integer, big signed integer and big floating point numbers.
Languages
C++
96.2%
Assembly
1.9%
Makefile
1.2%
Shell
0.6%