Commit Graph

4 Commits

Author SHA1 Message Date
John Maddock
d7578f242c Add numerator/denominator accessor functions to rational_adapter.hpp.
Define predefined rational number type for libtommath.
Add rational number specific tests to test_arithmetic.cpp.
Document rational_adapter and related stuff, regenerate docs.

[SVN r76130]
2011-12-24 13:13:16 +00:00
John Maddock
c32e35aace Fix File IO and string conversion for rational_adapter, and update tests accordingly.
[SVN r76129]
2011-12-24 11:59:25 +00:00
John Maddock
b9ea00966f Fix modulus operations for negative numbers that should yield zero results (and update tests to match).
Fix boost::rational comparison operator support.
Fix GCC failures in test_rational_io.cpp.
Add adapter for rational types.

[SVN r76128]
2011-12-24 10:07:32 +00:00
John Maddock
a2dc3b968c Fix remaining Boost.Rational support issues and add rational number IO test.
[SVN r76121]
2011-12-23 17:13:29 +00:00