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
data/doc/classes/{LongMath/LongDecimalQuot.src/M000026.html → LongDecimalQuot.src/M000003.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>new! (
|
8
|
+
<title>new! (LongDecimalQuot)</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 1178</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">LongDecimalQuot</span>.<span class="ruby-identifier">new!</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">second</span>)
|
15
15
|
<span class="ruby-identifier">new</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">second</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000027.html → LongDecimalQuot.src/M000004.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>new (
|
8
|
+
<title>new (LongDecimalQuot)</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 1186</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">second</span>)
|
15
15
|
<span class="ruby-keyword kw">if</span> ((<span class="ruby-identifier">first</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Rational</span>) <span class="ruby-operator">||</span> (<span class="ruby-identifier">first</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Integer</span>)) <span class="ruby-operator">&&</span> (<span class="ruby-identifier">second</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Integer</span>) <span class="ruby-keyword kw">then</span>
|
16
16
|
<span class="ruby-ivar">@rat</span> = <span class="ruby-constant">Rational</span>(<span class="ruby-identifier">first</span>.<span class="ruby-identifier">numerator</span>, <span class="ruby-identifier">first</span>.<span class="ruby-identifier">denominator</span>)
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000028.html → LongDecimalQuot.src/M000005.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>numerator (
|
8
|
+
<title>numerator (LongDecimalQuot)</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 1206</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">numerator</span>
|
15
15
|
<span class="ruby-identifier">rat</span>.<span class="ruby-identifier">numerator</span>
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000029.html → LongDecimalQuot.src/M000006.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>denominator (
|
8
|
+
<title>denominator (LongDecimalQuot)</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 1214</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">denominator</span>
|
15
15
|
<span class="ruby-identifier">rat</span>.<span class="ruby-identifier">denominator</span>
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000030.html → LongDecimalQuot.src/M000007.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>to_s (
|
8
|
+
<title>to_s (LongDecimalQuot)</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 1232</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
15
15
|
<span class="ruby-identifier">str</span> = <span class="ruby-ivar">@rat</span>.<span class="ruby-identifier">to_s</span>
|
16
16
|
<span class="ruby-identifier">str</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"["</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">scale</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"]"</span>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000032.html → LongDecimalQuot.src/M000008.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>to_f (
|
8
|
+
<title>to_f (LongDecimalQuot)</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 1240</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_f</span>
|
15
15
|
<span class="ruby-identifier">to_r</span>.<span class="ruby-identifier">to_f</span>
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>to_bd (LongDecimalQuot)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 1247</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_bd</span>
|
15
|
+
<span class="ruby-identifier">to_ld</span>.<span class="ruby-identifier">to_bd</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000033.html → LongDecimalQuot.src/M000010.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>to_i (
|
8
|
+
<title>to_i (LongDecimalQuot)</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 1254</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_i</span>
|
15
15
|
<span class="ruby-identifier">to_r</span>.<span class="ruby-identifier">to_i</span>
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000034.html → LongDecimalQuot.src/M000011.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>to_ld (
|
8
|
+
<title>to_ld (LongDecimalQuot)</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 1261</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ld</span>
|
15
15
|
<span class="ruby-identifier">round_to_scale</span>(<span class="ruby-identifier">scale</span>, <span class="ruby-constant">ROUND_HALF_UP</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>inc! (LongDecimalQuot)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 1268</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inc!</span>
|
15
|
+
<span class="ruby-ivar">@rat</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>dec! (LongDecimalQuot)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 1275</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dec!</span>
|
15
|
+
<span class="ruby-ivar">@rat</span> <span class="ruby-operator">-=</span> <span class="ruby-value">1</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000036.html → LongDecimalQuot.src/M000014.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>-@ (
|
8
|
+
<title>-@ (LongDecimalQuot)</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 1283</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-@</span>
|
15
15
|
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">zero?</span> <span class="ruby-keyword kw">then</span>
|
16
16
|
<span class="ruby-keyword kw">self</span>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000037.html → LongDecimalQuot.src/M000015.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>+ (
|
8
|
+
<title>+ (LongDecimalQuot)</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 1297</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">+</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">LongDecimalQuot</span>) <span class="ruby-keyword kw">then</span>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000038.html → LongDecimalQuot.src/M000016.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>- (
|
8
|
+
<title>- (LongDecimalQuot)</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 1312</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">-</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">LongDecimalQuot</span>) <span class="ruby-keyword kw">then</span>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000039.html → LongDecimalQuot.src/M000017.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>* (
|
8
|
+
<title>* (LongDecimalQuot)</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 1327</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">*</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">LongDecimalQuot</span>) <span class="ruby-keyword kw">then</span>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000040.html → LongDecimalQuot.src/M000018.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>/ (
|
8
|
+
<title>/ (LongDecimalQuot)</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 1342</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">/</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">LongDecimalQuot</span>) <span class="ruby-keyword kw">then</span>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000041.html → LongDecimalQuot.src/M000019.html}
RENAMED
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>** (
|
8
|
+
<title>** (LongDecimalQuot)</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 1357</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">**</span>(<span class="ruby-identifier">other</span>)
|
15
|
-
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">
|
15
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">LongDecimalBase</span>) <span class="ruby-keyword kw">then</span>
|
16
16
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">is_int?</span> <span class="ruby-keyword kw">then</span>
|
17
17
|
<span class="ruby-identifier">other</span> = <span class="ruby-identifier">other</span>.<span class="ruby-identifier">to_i</span>
|
18
18
|
<span class="ruby-keyword kw">else</span>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000042.html → LongDecimalQuot.src/M000020.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>divmod (
|
8
|
+
<title>divmod (LongDecimalQuot)</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 1384</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divmod</span>(<span class="ruby-identifier">other</span>)
|
15
15
|
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Complex</span>) <span class="ruby-keyword kw">then</span>
|
16
16
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-value str">"divmod not supported for Complex"</span>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000043.html → LongDecimalQuot.src/M000021.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>% (
|
8
|
+
<title>% (LongDecimalQuot)</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 1396</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">%</span>(<span class="ruby-identifier">other</span>)
|
15
15
|
<span class="ruby-identifier">q</span>, <span class="ruby-identifier">r</span> = <span class="ruby-identifier">divmod</span> <span class="ruby-identifier">other</span>
|
16
16
|
<span class="ruby-identifier">r</span>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000046.html → LongDecimalQuot.src/M000022.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>abs (
|
8
|
+
<title>abs (LongDecimalQuot)</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 1404</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">abs</span>
|
15
15
|
<span class="ruby-constant">LongDecimalQuot</span>(<span class="ruby-identifier">rat</span>.<span class="ruby-identifier">abs</span>, <span class="ruby-identifier">scale</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000048.html → LongDecimalQuot.src/M000023.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>round_to_scale (
|
8
|
+
<title>round_to_scale (LongDecimalQuot)</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 1418</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-ivar">@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>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000049.html → LongDecimalQuot.src/M000024.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>coerce (
|
8
|
+
<title>coerce (LongDecimalQuot)</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 1490</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">coerce</span>(<span class="ruby-identifier">other</span>)
|
15
15
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">LongDecimal</span> <span class="ruby-keyword kw">then</span>
|
16
16
|
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">LongDecimalQuot</span>(<span class="ruby-identifier">other</span>.<span class="ruby-identifier">to_r</span>, <span class="ruby-identifier">other</span>.<span class="ruby-identifier">scale</span>), <span class="ruby-keyword kw">self</span>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000050.html → LongDecimalQuot.src/M000025.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>== (
|
8
|
+
<title>== (LongDecimalQuot)</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 1522</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other</span>)
|
15
15
|
(<span class="ruby-identifier">other</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">LongDecimalQuot</span>) <span class="ruby-operator">&&</span> (<span class="ruby-keyword kw">self</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">other</span>) <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&&</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">scale</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">scale</span>
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>zero? (LongDecimalQuot)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 1530</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">zero?</span>
|
15
|
+
<span class="ruby-ivar">@rat</span>.<span class="ruby-identifier">zero?</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>one? (LongDecimalQuot)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/long-decimal.rb, line 1538</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">one?</span>
|
15
|
+
(<span class="ruby-ivar">@rat</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
data/doc/classes/{LongMath/LongDecimalQuot.src/M000054.html → LongDecimalQuot.src/M000028.html}
RENAMED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>is_int? (
|
8
|
+
<title>is_int? (LongDecimalQuot)</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 1545</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_int?</span>
|
15
15
|
<span class="ruby-identifier">denominator</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|