shigek
39503e4d0f
Int. overflow bug in multiplication fixed & VpNmlz() speed up.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-21 15:13:45 +00:00
shigek
62acad914e
to_s("+") implemented.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-19 14:21:13 +00:00
shigek
caf213d9ad
E added. Typo corrected.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-19 14:16:09 +00:00
shigek
a8027639b8
Refinement for speedup.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-17 14:35:53 +00:00
shigek
32df87feab
Typo 'selt' corrected to 'self'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-16 13:36:40 +00:00
shigek
3fe728e76b
sqrt() & atan() added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-15 14:13:49 +00:00
shigek
6b0e6a7ce7
Bug fix: limit & div combination.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-15 14:09:51 +00:00
shigek
1e97118d8f
Newly added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-14 15:34:17 +00:00
shigek
67ea373c70
Changed to use lib/bigdecimal/math.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-14 15:33:36 +00:00
shigek
9b1dbc0c77
lib/bigdecimal/math.rb added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-14 15:32:17 +00:00
shigek
588c9c66bf
Bug fix: div method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-14 15:11:44 +00:00
shigek
0b6cf4bea8
Ambiguity of BigDecimal::limit removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-13 14:33:31 +00:00
shigek
b2385db896
Bug fix: '-' should not be counted as a digit(to_s(n) format).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-10 14:28:08 +00:00
shigek
9cfc06d9ae
Comment changed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-08 15:31:53 +00:00
shigek
606c473683
F style output(like 1234.56789) implemented to to_s method.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-08 15:31:27 +00:00
shigek
657a5c4b96
Just small change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-06 15:18:46 +00:00
shigek
3d9f4a7c77
Comparison results adjusted to Float's.
...
Use rb_num_coerce_xxxxx(x,y) instead of own.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-06 15:16:37 +00:00
shigek
de20b0bf59
Trailing 0s in split removed.(to_digits changed).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-05 14:03:57 +00:00
shigek
a179c38e4c
Trailing 0s in split removed. & bug in floor fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-05 14:03:09 +00:00
shigek
f2c49270e7
Bug in to_digits fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-05 09:32:09 +00:00
shigek
70903de1cd
Trailing 0s in to_s removed. & Bug in VpFrac fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-05 09:31:36 +00:00
shigek
a21b0c47c3
Unnecessary comments removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-05 04:12:00 +00:00
shigek
73b86b2f8e
Fix: coerce in comparisons.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-05 04:07:35 +00:00
shigek
480fa2f5cc
Typo pointed out by Javier Goizueta fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-04 13:47:29 +00:00
shigek
5d8f3617e0
Specs adjusted for FLoat.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-01 04:48:32 +00:00
matz
37b2487c70
* lib/net/smtp.rb (Net::SMTP::send0): add taint check.
...
* ruby.h (LLONG_MIN): wrong value.
* io.c (rb_f_getc): $stdin may not be IO. [ruby-dev:20973]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-29 07:52:55 +00:00
shigek
ce356b524e
Bug for 2nd arg of round fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-28 13:47:19 +00:00
shigek
4cbf09d1fe
Bug fix from Javier Goizueta.
...
ROUND_MODE & round changed(source & docs).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-28 02:56:43 +00:00
shigek
472efdfeb4
0 ** 0 bug fixed.
...
ROUND_MODE introduced,COMP_MODE removed & round method substantially changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-26 13:04:57 +00:00
shigek
651f324a27
Spec for div changed.
...
add,sub,mult,div now can specify exact digits number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-25 02:27:33 +00:00
shigek
aafd6b025c
ver method added.
...
Spec for div changed.
add,sub,mult,div now can specify exact digits number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-25 02:26:56 +00:00
shigek
28f3cb3fd8
COMP_MODE_ROUNDUP -> COMP_MODE_ROUND
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-23 04:48:56 +00:00
shigek
66910f17b7
Explanation for prec, and some more for max. number of sig. digits.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-22 14:04:23 +00:00
matz
2416271405
* lib/tmpdir.rb: new library to get temporary directory path,
...
using GetTempPath on Win32 environment.
* lib/tempfile.rb: now uses tmpdir.rb.
* lib/cgi/session.rb, ib/drb/unix.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-21 15:34:18 +00:00
shigek
15c3df744f
patches from T.Saito etc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-21 14:49:25 +00:00
shigek
1bb3071bde
As discussed in ruby-dev ML:
...
lib directory moved.
util.rb created instead of bigdecimal-rational.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-18 15:26:37 +00:00
shigek
e242cf9def
More pathes from Tadasi Saito.
...
As discussed in ruby-dev ML:
E,PI, etc are disabled.
BigDecimal op String disabled.
to_f changed.
lib directory moved.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-18 15:24:25 +00:00
shigek
b10272dc37
More pathes from Tadasi Saito.
...
As discussed in ruby-dev ML:
E,PI, etc are disabled.
BigDecimal op String disabled.
to_f changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-18 15:23:23 +00:00
shigek
49298086d0
Precision for '**' enhanced (bug).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-01 14:14:18 +00:00
shigek
a40a92f04c
Bug in '/' fixed by Tadashi Saito.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-29 13:20:08 +00:00
shigek
f64d6232ab
Changed according to Tadashi Saito's advice.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-27 04:40:25 +00:00
shigek
d3ce235bab
1.From Tadashi Saito's advice
...
to_parts changed to split,assign removed, ** added,bugs in infinite? & nozero? fixed.
2.Rounding functionalities added
mode now accepts rounding mode.
round accepts second argument for Bankers' rounding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-27 04:38:57 +00:00
shigek
3f8d7303c1
bigdecimal-brushup.patch from Tadashi Saito applied.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-06 13:18:26 +00:00
aamine
01ca1341da
* ext/bigdecimal/.cvsignore: new file (retry).
...
* ext/zlib/.cvsignore: new file (retry).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-06 08:25:46 +00:00
shigek
aaebe67919
Patch from Michal Rokos for sprintf format strings applied.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-25 08:37:33 +00:00
shigek
cff57b4a26
Dir. rearrangement according to the suggestions from Minero Aoki.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-24 13:37:32 +00:00
shigek
558c428b72
More explanations for sincos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-24 13:32:30 +00:00
shigek
782d0f0d32
Prec. improvement for PI.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-24 13:31:20 +00:00
shigek
57c6f017a0
Bug in negative.exp(n) reported by Hitoshi Miyazaki fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-17 14:00:42 +00:00
shigek
15e11a88c6
Use rb_str2cstr() instead of STR2CSTR() macro.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-28 07:50:28 +00:00
shigek
640c19405c
Rubbish !
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-28 05:15:59 +00:00
shigek
7744351708
Copied from rough/bigdecimal,documents & some sample programs added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-28 05:00:21 +00:00