Sam Jaffe
|
718db62da5
Add some more formatting, including a truncation parameter
|
4 年之前 |
Sam Jaffe
|
a700e39648
Add print options to biginteger and bigdecimal.
|
4 年之前 |
Sam Jaffe
|
e03d947e04
Add a number format feature to the to_string() functions.
|
4 年之前 |
Sam Jaffe
|
99d12f1327
Add clang-format, move includes into proper directory, more settings changes
|
4 年之前 |
Sam Jaffe
|
df9da20f73
Fix bug where comparisons for operator==, etc were inverted (e.g. < was >, but == was still ==)
|
7 年之前 |
Sam Jaffe
|
10722b64d0
Fix bug in bigdecimal constructor for >9 digits after the decimal point
|
7 年之前 |
Sam Jaffe
|
bf8f524dfb
Fix bug with rescaling
|
7 年之前 |
Sam Jaffe
|
5e5345b1f7
Fixing bug where we pushed the numbers forward, causing them to be 1,000,000,000^diff times as large as appropriate.
|
7 年之前 |
Sam Jaffe
|
097d356053
More test magic. Fixing bug in rescaling
|
7 年之前 |
Sam Jaffe
|
43ca1aab4f
Since the bigdecimal tests for int values are largely identical to the ones for biginteger, combine them as a typed test.
|
7 年之前 |
Samuel Jaffe
|
3d7a2065a9
Adding other comparison operators.
|
8 年之前 |
Samuel Jaffe
|
fb182cf808
Fixing operator equals
|
8 年之前 |
Samuel Jaffe
|
c122c8ff1e
Fixing division. Cleaning up multiplication code. Using getter functions where appropriate.
|
8 年之前 |
Samuel Jaffe
|
9edde52a47
Fixing multiplication and to_string.
|
8 年之前 |
Samuel Jaffe
|
b08fa174bc
Fixing equals-one check.
|
8 年之前 |
Samuel Jaffe
|
ee7077654f
I think that this properly handles the various multiplication cases... but I really ought to mathematically prove it (with test cases for enough possible combos).
|
8 年之前 |
Samuel Jaffe
|
3c3d0eeb5c
Adding new test cases.
|
8 年之前 |
Samuel Jaffe
|
ac7e0d0a4d
Fix rescaling bug to force lossyness.
|
8 年之前 |
Samuel Jaffe
|
686f869964
Adding division with initial test cases (not complete).
|
8 年之前 |
Samuel Jaffe
|
a855123300
Fixing to_string output when scale is negative.
|
8 年之前 |
Samuel Jaffe
|
bb2144baf3
Initial commit of big decimal code, supporting +, -, *.
|
8 年之前 |