@@ -9,57 +9,57 @@ namespace UnitsNet.Tests
9
9
public class InformationTests : InformationTestsBase
10
10
{
11
11
protected override bool SupportsSIUnitSystem => false ;
12
- protected override decimal BitsInOneBit => 1m ;
12
+ protected override double BitsInOneBit => 1 ;
13
13
14
- protected override decimal BytesInOneBit => 0.125m ;
14
+ protected override double BytesInOneBit => 0.125 ;
15
15
16
- protected override decimal ExabitsInOneBit => 1e-18m ;
16
+ protected override double ExabitsInOneBit => 1e-18 ;
17
17
18
- protected override decimal ExabytesInOneBit => 0.125m * 1e-18m ;
18
+ protected override double ExabytesInOneBit => 0.125 * 1e-18 ;
19
19
20
- protected override decimal ExbibitsInOneBit => 1m / ( decimal ) Math . Pow ( 1024 , 6 ) ;
20
+ protected override double ExbibitsInOneBit => 1d / Math . Pow ( 1024 , 6 ) ;
21
21
22
- protected override decimal ExbibytesInOneBit => 1m / 8m / ( decimal ) Math . Pow ( 1024 , 6 ) ;
22
+ protected override double ExbibytesInOneBit => 1d / 8 / Math . Pow ( 1024 , 6 ) ;
23
23
24
- protected override decimal GibibitsInOneBit => 1m / ( decimal ) Math . Pow ( 1024 , 3 ) ;
24
+ protected override double GibibitsInOneBit => 1d / Math . Pow ( 1024 , 3 ) ;
25
25
26
- protected override decimal GibibytesInOneBit => 1m / 8m / ( decimal ) Math . Pow ( 1024 , 3 ) ;
26
+ protected override double GibibytesInOneBit => 1d / 8 / Math . Pow ( 1024 , 3 ) ;
27
27
28
- protected override decimal GigabitsInOneBit => 1e-9m ;
28
+ protected override double GigabitsInOneBit => 1e-9 ;
29
29
30
- protected override decimal GigabytesInOneBit => 0.125m * 1e-9m ;
30
+ protected override double GigabytesInOneBit => 0.125 * 1e-9 ;
31
31
32
- protected override decimal KibibitsInOneBit => 1m / 1024m ;
32
+ protected override double KibibitsInOneBit => 1d / 1024 ;
33
33
34
- protected override decimal KibibytesInOneBit => 1m / 8 / 1024m ;
34
+ protected override double KibibytesInOneBit => 1d / 8 / 1024 ;
35
35
36
- protected override decimal KilobitsInOneBit => 0.001m ;
36
+ protected override double KilobitsInOneBit => 0.001 ;
37
37
38
- protected override decimal KilobytesInOneBit => 0.000125m ;
38
+ protected override double KilobytesInOneBit => 0.000125 ;
39
39
40
- protected override decimal MebibitsInOneBit => 1m / ( decimal ) Math . Pow ( 1024 , 2 ) ;
40
+ protected override double MebibitsInOneBit => 1d / Math . Pow ( 1024 , 2 ) ;
41
41
42
- protected override decimal MebibytesInOneBit => 1m / 8m / ( decimal ) Math . Pow ( 1024 , 2 ) ;
42
+ protected override double MebibytesInOneBit => 1d / 8 / Math . Pow ( 1024 , 2 ) ;
43
43
44
- protected override decimal MegabitsInOneBit => 1e-6m ;
44
+ protected override double MegabitsInOneBit => 1e-6 ;
45
45
46
- protected override decimal MegabytesInOneBit => 0.125m * 1e-6m ;
46
+ protected override double MegabytesInOneBit => 0.125 * 1e-6 ;
47
47
48
- protected override decimal PebibitsInOneBit => 1m / ( decimal ) Math . Pow ( 1024 , 5 ) ;
48
+ protected override double PebibitsInOneBit => 1d / Math . Pow ( 1024 , 5 ) ;
49
49
50
- protected override decimal PebibytesInOneBit => 1m / 8m / ( decimal ) Math . Pow ( 1024 , 5 ) ;
50
+ protected override double PebibytesInOneBit => 1d / 8 / Math . Pow ( 1024 , 5 ) ;
51
51
52
- protected override decimal PetabitsInOneBit => 1e-15m ;
52
+ protected override double PetabitsInOneBit => 1e-15 ;
53
53
54
- protected override decimal PetabytesInOneBit => 0.125m * 1e-15m ;
54
+ protected override double PetabytesInOneBit => 0.125 * 1e-15 ;
55
55
56
- protected override decimal TebibitsInOneBit => 1m / ( decimal ) Math . Pow ( 1024 , 4 ) ;
56
+ protected override double TebibitsInOneBit => 1d / Math . Pow ( 1024 , 4 ) ;
57
57
58
- protected override decimal TebibytesInOneBit => 1m / 8m / ( decimal ) Math . Pow ( 1024 , 4 ) ;
58
+ protected override double TebibytesInOneBit => 1d / 8 / Math . Pow ( 1024 , 4 ) ;
59
59
60
- protected override decimal TerabitsInOneBit => 1e-12m ;
60
+ protected override double TerabitsInOneBit => 1e-12 ;
61
61
62
- protected override decimal TerabytesInOneBit => 0.125m * 1e-12m ;
62
+ protected override double TerabytesInOneBit => 0.125 * 1e-12 ;
63
63
64
64
[ Fact ]
65
65
public void OneKBHas1000Bytes ( )
0 commit comments