summaryrefslogtreecommitdiff
path: root/ext/bigdecimal/sample
diff options
context:
space:
mode:
authorshigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-29 13:34:00 +0000
committershigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-29 13:34:00 +0000
commit8ab241075728792ed56ef7371e424bec9ee187aa (patch)
treec4878ff882a277c81e6649fe1b0e479712f1a733 /ext/bigdecimal/sample
parent38b9eb1674afbff4517f082413ba6c7acbf8beff (diff)
limit inserted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal/sample')
-rw-r--r--ext/bigdecimal/sample/linear.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/bigdecimal/sample/linear.rb b/ext/bigdecimal/sample/linear.rb
index f93404f..c4a428e 100644
--- a/ext/bigdecimal/sample/linear.rb
+++ b/ext/bigdecimal/sample/linear.rb
@@ -16,6 +16,8 @@ def rd_order
n = gets().chomp.to_i
end
+BigDecimal::limit(100)
+
zero = BigDecimal::new("0.0")
one = BigDecimal::new("1.0")