long-decimal 0.00.15 → 0.00.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +8 -5
- data/VERSION +1 -1
- data/doc/classes/{LongMath/LongDecimal.html → LongDecimal.html} +372 -515
- data/doc/classes/{LongMath/LongDecimal.src/M000060.html → LongDecimal.src/M000034.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000061.html → LongDecimal.src/M000035.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000062.html → LongDecimal.src/M000036.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000063.html → LongDecimal.src/M000037.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000064.html → LongDecimal.src/M000038.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000065.html → LongDecimal.src/M000039.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000066.html → LongDecimal.src/M000040.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000067.html → LongDecimal.src/M000041.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000068.html → LongDecimal.src/M000042.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000069.html → LongDecimal.src/M000043.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000070.html → LongDecimal.src/M000044.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000071.html → LongDecimal.src/M000045.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000072.html → LongDecimal.src/M000046.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000074.html → LongDecimal.src/M000047.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000075.html → LongDecimal.src/M000048.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000076.html → LongDecimal.src/M000049.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000077.html → LongDecimal.src/M000050.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000078.html → LongDecimal.src/M000051.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000079.html → LongDecimal.src/M000052.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000080.html → LongDecimal.src/M000053.html} +3 -4
- data/doc/classes/{LongMath/LongDecimal.src/M000081.html → LongDecimal.src/M000054.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000082.html → LongDecimal.src/M000055.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000083.html → LongDecimal.src/M000056.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000085.html → LongDecimal.src/M000058.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000088.html → LongDecimal.src/M000059.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000089.html → LongDecimal.src/M000060.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000090.html → LongDecimal.src/M000061.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000092.html → LongDecimal.src/M000062.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000093.html → LongDecimal.src/M000063.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000094.html → LongDecimal.src/M000064.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000095.html → LongDecimal.src/M000065.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000096.html → LongDecimal.src/M000066.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000097.html → LongDecimal.src/M000067.html} +4 -4
- data/doc/classes/{LongMath/LongDecimal.src/M000098.html → LongDecimal.src/M000068.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000099.html → LongDecimal.src/M000069.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000100.html → LongDecimal.src/M000070.html} +5 -5
- data/doc/classes/{LongMath/LongDecimal.src/M000101.html → LongDecimal.src/M000071.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000102.html → LongDecimal.src/M000072.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000103.html → LongDecimal.src/M000073.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000104.html → LongDecimal.src/M000074.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000105.html → LongDecimal.src/M000075.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000106.html → LongDecimal.src/M000076.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000107.html → LongDecimal.src/M000077.html} +6 -6
- data/doc/classes/{LongMath/LongDecimal.src/M000108.html → LongDecimal.src/M000078.html} +6 -6
- data/doc/classes/{LongMath/LongDecimal.src/M000109.html → LongDecimal.src/M000079.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000110.html → LongDecimal.src/M000080.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000111.html → LongDecimal.src/M000081.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000112.html → LongDecimal.src/M000082.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000113.html → LongDecimal.src/M000083.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000114.html → LongDecimal.src/M000084.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000115.html → LongDecimal.src/M000085.html} +3 -3
- data/doc/classes/LongDecimal.src/M000086.html +18 -0
- data/doc/classes/LongDecimal.src/M000087.html +18 -0
- data/doc/classes/{LongMath/LongDecimal.src/M000119.html → LongDecimal.src/M000088.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000124.html → LongDecimal.src/M000089.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000125.html → LongDecimal.src/M000090.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000126.html → LongDecimal.src/M000091.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000129.html → LongDecimal.src/M000094.html} +3 -3
- data/doc/classes/LongDecimal.src/M000095.html +18 -0
- data/doc/classes/{LongMath/LongDecimal.src/M000130.html → LongDecimal.src/M000096.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000131.html → LongDecimal.src/M000097.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000132.html → LongDecimal.src/M000098.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000133.html → LongDecimal.src/M000099.html} +3 -3
- data/doc/classes/LongDecimalBase.html +354 -0
- data/doc/classes/{LongMath/LongDecimal.src/M000073.html → LongDecimalBase.src/M000101.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000086.html → LongDecimalBase.src/M000102.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000087.html → LongDecimalBase.src/M000103.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000091.html → LongDecimalBase.src/M000104.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000044.html → LongDecimalBase.src/M000105.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000117.html → LongDecimalBase.src/M000106.html} +3 -3
- data/doc/classes/{LongMath/LongDecimal.src/M000121.html → LongDecimalBase.src/M000109.html} +4 -4
- data/doc/classes/{LongMath/LongDecimal.src/M000122.html → LongDecimalBase.src/M000110.html} +4 -4
- data/doc/classes/{LongMath/LongDecimal.src/M000123.html → LongDecimalBase.src/M000111.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.html → LongDecimalQuot.html} +249 -263
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000026.html → LongDecimalQuot.src/M000003.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000027.html → LongDecimalQuot.src/M000004.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000028.html → LongDecimalQuot.src/M000005.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000029.html → LongDecimalQuot.src/M000006.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000030.html → LongDecimalQuot.src/M000007.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000032.html → LongDecimalQuot.src/M000008.html} +3 -3
- data/doc/classes/LongDecimalQuot.src/M000009.html +18 -0
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000033.html → LongDecimalQuot.src/M000010.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000034.html → LongDecimalQuot.src/M000011.html} +3 -3
- data/doc/classes/LongDecimalQuot.src/M000012.html +18 -0
- data/doc/classes/LongDecimalQuot.src/M000013.html +18 -0
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000036.html → LongDecimalQuot.src/M000014.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000037.html → LongDecimalQuot.src/M000015.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000038.html → LongDecimalQuot.src/M000016.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000039.html → LongDecimalQuot.src/M000017.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000040.html → LongDecimalQuot.src/M000018.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000041.html → LongDecimalQuot.src/M000019.html} +4 -4
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000042.html → LongDecimalQuot.src/M000020.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000043.html → LongDecimalQuot.src/M000021.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000046.html → LongDecimalQuot.src/M000022.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000048.html → LongDecimalQuot.src/M000023.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000049.html → LongDecimalQuot.src/M000024.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000050.html → LongDecimalQuot.src/M000025.html} +3 -3
- data/doc/classes/LongDecimalQuot.src/M000026.html +18 -0
- data/doc/classes/LongDecimalQuot.src/M000027.html +18 -0
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000054.html → LongDecimalQuot.src/M000028.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000055.html → LongDecimalQuot.src/M000029.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000058.html → LongDecimalQuot.src/M000032.html} +3 -3
- data/doc/classes/{LongMath/LongDecimalQuot.src/M000059.html → LongDecimalQuot.src/M000033.html} +3 -3
- data/doc/classes/LongDecimalRoundingMode/RoundingModeClass.html +5 -5
- data/doc/classes/LongMath.html +117 -117
- data/doc/classes/LongMath.src/{M000001.html → M000112.html} +1 -1
- data/doc/classes/LongMath.src/{M000002.html → M000113.html} +1 -1
- data/doc/classes/LongMath.src/{M000003.html → M000114.html} +1 -1
- data/doc/classes/LongMath.src/{M000004.html → M000115.html} +1 -1
- data/doc/classes/LongMath.src/{M000005.html → M000116.html} +1 -1
- data/doc/classes/LongMath.src/{M000006.html → M000117.html} +1 -1
- data/doc/classes/LongMath.src/{M000007.html → M000118.html} +1 -1
- data/doc/classes/LongMath.src/{M000008.html → M000119.html} +1 -1
- data/doc/classes/LongMath.src/{M000009.html → M000120.html} +1 -1
- data/doc/classes/LongMath.src/{M000010.html → M000121.html} +1 -1
- data/doc/classes/LongMath.src/{M000011.html → M000122.html} +1 -4
- data/doc/classes/LongMath.src/{M000012.html → M000123.html} +1 -1
- data/doc/classes/LongMath.src/{M000013.html → M000124.html} +1 -1
- data/doc/classes/LongMath.src/{M000014.html → M000125.html} +1 -2
- data/doc/classes/LongMath.src/{M000015.html → M000126.html} +1 -1
- data/doc/classes/LongMath.src/{M000016.html → M000127.html} +1 -2
- data/doc/classes/LongMath.src/{M000017.html → M000128.html} +1 -5
- data/doc/classes/LongMath.src/{M000018.html → M000129.html} +1 -1
- data/doc/classes/LongMath.src/{M000019.html → M000130.html} +1 -1
- data/doc/classes/LongMath.src/{M000020.html → M000131.html} +1 -1
- data/doc/classes/LongMath.src/{M000021.html → M000132.html} +4 -3
- data/doc/classes/LongMath.src/{M000022.html → M000133.html} +1 -1
- data/doc/classes/LongMath.src/{M000023.html → M000134.html} +2 -1
- data/doc/classes/{LongMath/Numeric.html → Numeric.html} +18 -15
- data/doc/classes/{LongMath/Numeric.src/M000134.html → Numeric.src/M000100.html} +3 -3
- data/doc/created.rid +1 -1
- data/doc/dot/f_0.dot +14 -5
- data/doc/dot/f_0.png +0 -0
- data/doc/files/lib/long-decimal_rb.html +10 -9
- data/doc/{classes/LongMath.src/M000024.html → files/lib/long-decimal_rb.src/M000001.html} +3 -3
- data/doc/{classes/LongMath.src/M000025.html → files/lib/long-decimal_rb.src/M000002.html} +3 -3
- data/doc/fr_class_index.html +1 -0
- data/doc/fr_method_index.html +126 -127
- data/lib/long-decimal.rb +154 -160
- data/test/testlongdecimal.rb +140 -11
- metadata +138 -136
- data/doc/classes/LongMath/LongDecimal.src/M000116.html +0 -30
- data/doc/classes/LongMath/LongDecimalQuot.src/M000031.html +0 -18
- data/doc/classes/LongMath/LongDecimalQuot.src/M000035.html +0 -18
- data/doc/classes/LongMath/LongDecimalQuot.src/M000045.html +0 -18
- data/doc/classes/LongMath/LongDecimalQuot.src/M000047.html +0 -18
- data/doc/classes/LongMath/LongDecimalQuot.src/M000051.html +0 -23
- data/doc/classes/LongMath/LongDecimalQuot.src/M000052.html +0 -19
- data/doc/classes/LongMath/LongDecimalQuot.src/M000053.html +0 -18
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>new! (
|
8
|
+
<title>new! (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 178</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">LongDecimal</span>.<span class="ruby-identifier">new!</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">s</span> = <span class="ruby-value">0</span>)
|
15
15
|
<span class="ruby-identifier">new</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">s</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>zero! (
|
8
|
+
<title>zero! (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 186</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">LongDecimal</span>.<span class="ruby-identifier">zero!</span>(<span class="ruby-identifier">s</span> = <span class="ruby-value">0</span>)
|
15
15
|
<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">s</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>one! (
|
8
|
+
<title>one! (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 195</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">LongDecimal</span>.<span class="ruby-identifier">one!</span>(<span class="ruby-identifier">s</span> = <span class="ruby-value">0</span>)
|
15
15
|
<span class="ruby-identifier">new</span>(<span class="ruby-value">10</span><span class="ruby-operator">**</span><span class="ruby-identifier">s</span>, <span class="ruby-identifier">s</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>two! (
|
8
|
+
<title>two! (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 204</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">LongDecimal</span>.<span class="ruby-identifier">two!</span>(<span class="ruby-identifier">s</span> = <span class="ruby-value">0</span>)
|
15
15
|
<span class="ruby-identifier">new</span>(<span class="ruby-value">2</span><span class="ruby-operator">*</span><span class="ruby-value">10</span><span class="ruby-operator">**</span><span class="ruby-identifier">s</span>, <span class="ruby-identifier">s</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>ten! (
|
8
|
+
<title>ten! (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 213</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">LongDecimal</span>.<span class="ruby-identifier">ten!</span>(<span class="ruby-identifier">s</span> = <span class="ruby-value">0</span>)
|
15
15
|
<span class="ruby-identifier">new</span>(<span class="ruby-value">10</span><span class="ruby-operator">**</span>(<span class="ruby-identifier">s</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>), <span class="ruby-identifier">s</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>minus_one! (
|
8
|
+
<title>minus_one! (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 222</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">LongDecimal</span>.<span class="ruby-identifier">minus_one!</span>(<span class="ruby-identifier">s</span> = <span class="ruby-value">0</span>)
|
15
15
|
<span class="ruby-identifier">new</span>(<span class="ruby-value">-1</span><span class="ruby-operator">*</span><span class="ruby-value">10</span><span class="ruby-operator">**</span><span class="ruby-identifier">s</span>, <span class="ruby-identifier">s</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>power_of_ten! (
|
8
|
+
<title>power_of_ten! (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 232</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">LongDecimal</span>.<span class="ruby-identifier">power_of_ten!</span>(<span class="ruby-identifier">e</span>, <span class="ruby-identifier">s</span> = <span class="ruby-value">0</span>)
|
15
15
|
<span class="ruby-constant">LongMath</span>.<span class="ruby-identifier">check_is_int</span>(<span class="ruby-identifier">e</span>, <span class="ruby-value str">"e"</span>)
|
16
16
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-node">"negative 1st arg \"#{e.inspect}\""</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">e</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>new (
|
8
|
+
<title>new (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 245</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">s</span>)
|
15
15
|
|
16
16
|
<span class="ruby-comment cmt"># handle some obvious errors with x first</span>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>scale= (
|
8
|
+
<title>scale= (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 348</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scale=</span>(<span class="ruby-identifier">s</span>)
|
15
15
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-node">"non integer arg \"#{s.inspect}\""</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Integer</span>
|
16
16
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-node">"negative arg \"#{s.inspect}\""</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">s</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>round_to_scale (
|
8
|
+
<title>round_to_scale (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 378</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">round_to_scale</span>(<span class="ruby-identifier">new_scale</span>, <span class="ruby-identifier">mode</span> = <span class="ruby-constant">ROUND_UNNECESSARY</span>)
|
15
15
|
|
16
16
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-node">"new_scale #{new_scale.inspect} must be integer"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">new_scale</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Integer</span>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>to_s (
|
8
|
+
<title>to_s (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 417</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">shown_scale</span> = <span class="ruby-ivar">@scale</span>, <span class="ruby-identifier">mode</span> = <span class="ruby-constant">ROUND_UNNECESSARY</span>, <span class="ruby-identifier">base</span> = <span class="ruby-value">10</span>)
|
15
15
|
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">base</span> <span class="ruby-operator">==</span> <span class="ruby-value">10</span>) <span class="ruby-keyword kw">then</span>
|
16
16
|
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">shown_scale</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@scale</span>)
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>to_s_10 (
|
8
|
+
<title>to_s_10 (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 442</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s_10</span>
|
15
15
|
<span class="ruby-identifier">to_s_internal</span>(<span class="ruby-value">10</span>, <span class="ruby-identifier">scale</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>to_s_internal (
|
8
|
+
<title>to_s_internal (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 449</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s_internal</span>(<span class="ruby-identifier">b</span>, <span class="ruby-identifier">sc</span>)
|
15
15
|
<span class="ruby-identifier">sg</span> = <span class="ruby-identifier">sgn</span>
|
16
16
|
<span class="ruby-identifier">i</span> = <span class="ruby-identifier">int_val</span>.<span class="ruby-identifier">abs</span>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>to_f (
|
8
|
+
<title>to_f (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 474</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_f</span>
|
15
15
|
<span class="ruby-identifier">divisor</span> = <span class="ruby-identifier">denominator</span>
|
16
16
|
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">divisor</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>) <span class="ruby-keyword kw">then</span>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>to_i (
|
8
|
+
<title>to_i (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 504</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_i</span>
|
15
15
|
<span class="ruby-identifier">numerator</span>.<span class="ruby-identifier">div</span>(<span class="ruby-identifier">denominator</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>to_ld (
|
8
|
+
<title>to_ld (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 511</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ld</span>
|
15
15
|
<span class="ruby-keyword kw">self</span>
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>to_bd (
|
8
|
+
<title>to_bd (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 518</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_bd</span>
|
15
15
|
<span class="ruby-comment cmt"># this operation is probably not used so heavily, so we can live with a</span>
|
16
16
|
<span class="ruby-comment cmt"># string as an intermediate step.</span>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>denominator (
|
8
|
+
<title>denominator (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 532</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">denominator</span>
|
15
15
|
<span class="ruby-value">10</span><span class="ruby-operator">**</span><span class="ruby-identifier">scale</span>
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>int_digits2 (
|
8
|
+
<title>int_digits2 (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 554</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">int_digits2</span>
|
15
15
|
<span class="ruby-identifier">int_part</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">abs</span>.<span class="ruby-identifier">to_i</span>
|
16
16
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">int_part</span>.<span class="ruby-identifier">zero?</span> <span class="ruby-keyword kw">then</span>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>int_digits10 (
|
8
|
+
<title>int_digits10 (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 577</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">int_digits10</span>
|
15
15
|
<span class="ruby-identifier">int_part</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">abs</span>.<span class="ruby-identifier">to_i</span>
|
16
16
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">int_part</span>.<span class="ruby-identifier">zero?</span> <span class="ruby-keyword kw">then</span>
|
@@ -34,7 +34,6 @@
|
|
34
34
|
<span class="ruby-identifier">idx</span> <span class="ruby-operator">-=</span> <span class="ruby-value">1</span>
|
35
35
|
<span class="ruby-identifier">expon</span> = <span class="ruby-value">1</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">idx</span>
|
36
36
|
<span class="ruby-identifier">power</span> = <span class="ruby-identifier">powers</span>[<span class="ruby-identifier">idx</span>]
|
37
|
-
<span class="ruby-comment cmt"># puts("i=#{int_part} p=#{power}\n")</span>
|
38
37
|
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">int_part</span> <span class="ruby-operator">>=</span> <span class="ruby-identifier">power</span>
|
39
38
|
<span class="ruby-identifier">id</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">expon</span>
|
40
39
|
<span class="ruby-identifier">int_part</span> = (<span class="ruby-identifier">int_part</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">power</span>).<span class="ruby-identifier">to_i</span>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>equalize_scale (
|
8
|
+
<title>equalize_scale (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 614</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">equalize_scale</span>(<span class="ruby-identifier">other</span>)
|
15
15
|
<span class="ruby-identifier">o</span>, <span class="ruby-identifier">s</span> = <span class="ruby-identifier">coerce</span>(<span class="ruby-identifier">other</span>)
|
16
16
|
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">s</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">LongDecimal</span>) <span class="ruby-keyword kw">then</span>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>anti_equalize_scale (
|
8
|
+
<title>anti_equalize_scale (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 635</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">anti_equalize_scale</span>(<span class="ruby-identifier">other</span>)
|
15
15
|
<span class="ruby-identifier">o</span>, <span class="ruby-identifier">s</span> = <span class="ruby-identifier">coerce</span>(<span class="ruby-identifier">other</span>)
|
16
16
|
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">s</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">LongDecimal</span>) <span class="ruby-keyword kw">then</span>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>succ (
|
8
|
+
<title>succ (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 653</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">succ</span>
|
15
15
|
<span class="ruby-constant">LongDecimal</span>(<span class="ruby-identifier">int_val</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>, <span class="ruby-identifier">scale</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>pred (
|
8
|
+
<title>pred (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 664</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pred</span>
|
15
15
|
<span class="ruby-constant">LongDecimal</span>(<span class="ruby-identifier">int_val</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>, <span class="ruby-identifier">scale</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>inc! (
|
8
|
+
<title>inc! (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 671</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inc!</span>
|
15
15
|
<span class="ruby-ivar">@int_val</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">denominator</span>
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>dec! (
|
8
|
+
<title>dec! (LongDecimal)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 678</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dec!</span>
|
15
15
|
<span class="ruby-ivar">@int_val</span> <span class="ruby-operator">-=</span> <span class="ruby-identifier">denominator</span>
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|