summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authorshigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-21 03:52:43 +0000
committershigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-21 03:52:43 +0000
commitc2e6541a6a4c0f0c37fe6ac3d058c6fbe5e350e2 (patch)
tree11608d5d57b2b470bddd7652125136f9c6640375 /ext/bigdecimal
parent970ad34c958a62ba6794edd40dc85fc2dc4b9f77 (diff)
Added math.rb descriptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bigdecimal_en.html11
-rw-r--r--ext/bigdecimal/bigdecimal_ja.html12
2 files changed, 17 insertions, 6 deletions
diff --git a/ext/bigdecimal/bigdecimal_en.html b/ext/bigdecimal/bigdecimal_en.html
index 7f6faa39b9..02c88df43e 100644
--- a/ext/bigdecimal/bigdecimal_en.html
+++ b/ext/bigdecimal/bigdecimal_en.html
@@ -91,12 +91,17 @@ In 32 bits integer system,every 4 digits(in decimal) are computed simultaneously
This means the number of significant digits in BigDecimal is always a multiple of 4.
<P>
Some more methods are available in Ruby code (not C code).
-To use them,just require util.rb as:
+Functions such as sin,cos ...,are in math.rb in bigdecimal directory.
+To use them,require math.rb as:
+<CODE><PRE>
+require "bigdecimal/math.rb"
+</PRE></CODE>
+For details,see the math.rb code and comments.
+Other utility methods are in util.rb.
+To use util.rb, require it as:
<CODE><PRE>
require "bigdecimal/util.rb"
</PRE></CODE>
-String to BigDecimal conversion, BigDecimal to String conversion
-(in "nnnnnn.mmmm" form not in "0.xxxxxEn" form) etc are defined.
For details,see the util.rb code.
<H4><U>Class methods</U></H4>
diff --git a/ext/bigdecimal/bigdecimal_ja.html b/ext/bigdecimal/bigdecimal_ja.html
index b43278e616..33d5d834fb 100644
--- a/ext/bigdecimal/bigdecimal_ja.html
+++ b/ext/bigdecimal/bigdecimal_ja.html
@@ -98,9 +98,15 @@ c=a+b
内部の「有効桁数」は4の倍数となっています。
<P>
以下のメソッド以外にも、(C ではない) Ruby ソースの形で
-提供されているものもあります。例えば、文字列から BigDecimal への
-変換や、"0.xxxxxEn" という形式ではなく "nnnnn.mmmm" の形式の文字列
-へ変換するメソッド等があります。利用するには
+提供されているものもあります。例えば、
+<CODE><PRE>
+require "bigdecimal/math.rb"
+</PRE></CODE>
+とすることで、sin や cos といった関数が使用できるようになります。
+使用方法など、詳細は math.rb の内容を参照して下さい。
+
+その他、Float との相互変換などのメソッドが util.rb でサポートされています。
+利用するには
<CODE><PRE>
require "bigdecimal/util.rb"
</PRE></CODE>