TTMath is a small library which allows one to perform arithmetic operations with big unsigned integer, big signed integer and big floating point numbers.
Go to file
Tomasz Sowa 5ef27bdbd0 Some fixes from trunk:
fixed: UInt::SetBitInWord(uint & value, uint bit) set 1 if the bit was
       equal 1 (should be set 2)
       this affected only no-asm parts - when macro TTMATH_NOASM was defined
fixed: UInt<value_size>::MulInt(uint ss2)
       there was a buffer overflow when value_size was equal 1
fixed: UInt::AddVector() and UInt::SubVector() didn't want to compile
       when macro TTMATH_NOASM was defined
fixed: Big::operator>> didn't correctly recognize values in scientific mode (with 'e' character)
fixed: Int::FromString(const tt_string & s, uint b = 10)
       didn't use 'b' (always was '10')


git-svn-id: svn://ttmath.org/publicrep/ttmath/branches/0.8.x@204 e52654a7-88a9-db11-a3e9-0013d4bc506e
2009-10-07 17:33:03 +00:00
constgen added: to Big<> class: support for NaN flag (Not a Number) 2009-05-26 23:13:22 +00:00
samples added: 'constgen' directory -- there is a program there to generate some constants used in ttmathbig.h 2009-03-12 20:54:46 +00:00
tests added: 'constgen' directory -- there is a program there to generate some constants used in ttmathbig.h 2009-03-12 20:54:46 +00:00
ttmath Some fixes from trunk: 2009-10-07 17:33:03 +00:00
CHANGELOG Some fixes from trunk: 2009-10-07 17:33:03 +00:00
COPYRIGHT changed: version of the library: 0.8.3 now 2009-04-06 16:34:19 +00:00
README fixed: UInt::AddInt() in no-asm code has incorrect assertion 2009-05-08 18:14:00 +00:00
doxygen.cfg changed: version of the library: 0.8.3 now 2009-04-06 16:34:19 +00:00

README

TTMath - 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 etc. With the library also goes
a mathematical parser which helps you solving input formulas read directly
from a user.

TTMath is developed under the BSD licence which means that it is free
for both personal and commercial use.

The library has some technical limitations:
 * there are only two platforms that are supported: x86 and x86_64,
 * you can use this library only with the C++ programming language.

The main goal of the library is to allow one to use big values in the same
way as the standard types like int, float, etc. 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 directly in the source code by the programmer.

Author: Tomasz Sowa <t.sowa@ttmath.org>
Project pages: http://www.ttmath.org
http://sourceforge.net/projects/ttmath