From c2e6541a6a4c0f0c37fe6ac3d058c6fbe5e350e2 Mon Sep 17 00:00:00 2001 From: shigek Date: Tue, 21 Oct 2003 03:52:43 +0000 Subject: Added math.rb descriptions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/bigdecimal/bigdecimal_en.html | 11 ++++++++--- ext/bigdecimal/bigdecimal_ja.html | 12 +++++++++--- 2 files changed, 17 insertions(+), 6 deletions(-) (limited to 'ext') 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.

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: +

+require "bigdecimal/math.rb"
+
+For details,see the math.rb code and comments. +Other utility methods are in util.rb. +To use util.rb, require it as:
 require "bigdecimal/util.rb"
 
-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.

Class methods

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の倍数となっています。

以下のメソッド以外にも、(C ではない) Ruby ソースの形で -提供されているものもあります。例えば、文字列から BigDecimal への -変換や、"0.xxxxxEn" という形式ではなく "nnnnn.mmmm" の形式の文字列 -へ変換するメソッド等があります。利用するには +提供されているものもあります。例えば、 +

+require "bigdecimal/math.rb"
+
+とすることで、sin や cos といった関数が使用できるようになります。 +使用方法など、詳細は math.rb の内容を参照して下さい。 + +その他、Float との相互変換などのメソッドが util.rb でサポートされています。 +利用するには
 require "bigdecimal/util.rb"
 
-- cgit v1.2.3