File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
require " spec"
2
- require " big_decimal "
2
+ require " big "
3
3
4
4
describe BigDecimal do
5
5
it " initializes from valid input" do
Original file line number Diff line number Diff line change 8
8
struct BigRational < Number
9
9
end
10
10
11
+ struct BigDecimal < Number
12
+ end
13
+
11
14
require " ./big/lib_gmp"
12
15
require " ./big/big_int"
13
16
require " ./big/big_float"
Original file line number Diff line number Diff line change 1
- require " big"
2
-
3
1
# A `BigDecimal` represents arbitrary precision decimals.
4
2
#
5
3
# It is internally represented by a pair of `BigInt` and `UInt64`: value and scale.
@@ -15,7 +13,7 @@ class InvalidBigDecimalException < Exception
15
13
end
16
14
end
17
15
18
- struct BigDecimal
16
+ struct BigDecimal < Number
19
17
ZERO = BigInt .new(0 )
20
18
TEN = BigInt .new(10 )
21
19
DEFAULT_MAX_DIV_ITERATIONS = 100 _u64
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments