1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
Kenta Murata a86c147579
Import bigdecimal 2.0.2 (#3905)
* remove duplicated include

* Make BigDecimal#round with argument < 1 return Integer

Fixes [Bug #12780]

* Use a higher default precision for BigDecimal#power and #**

When a fractional power is given, increase the precision if the
precision isn't specified via power's second argument:

Float: increase by 15 (rough number of decimal precision in float)
BigDecimal: increase by adding similar precision modifier as done to
            calculate the base precision.
Rational: double the precision, since a BigDecimal is created, but
          the created BigDecimal uses the same precision.

Increasing the precision for these power calculations has the obvious
tradeoff of making the calculations slower.

Fixes Ruby Bug #17264

* Use DBLE_FIG for a Float value

* Version 2.0.1

Co-authored-by: pavel <pavel.rosicky@easy.cz>
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
2020-12-15 15:17:15 +09:00
..
-test- Import fiddle-1.0.4 (#3860) 2020-12-11 09:41:12 +09:00
bigdecimal Import bigdecimal 2.0.2 (#3905) 2020-12-15 15:17:15 +09:00
cgi/escape sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
continuation sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
coverage Document Different Coverage Modes 2020-11-20 09:24:46 +09:00
date [ruby/date] Numeric already includes Comparable 2020-11-12 21:35:17 +09:00
dbm sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
digest [ruby/digest] LICENSE 2020-12-03 17:35:28 +09:00
etc sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
fcntl sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
fiber Update dependencies 2019-11-18 23:16:22 +09:00
fiddle Reword docs for Fiddle::Function#call [ci skip] 2020-12-14 18:26:32 -05:00
gdbm sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
io [ruby/io-wait] Added extensions 2020-12-03 17:35:29 +09:00
json Complex and Rational is embedded classes now 2020-11-10 13:14:42 +09:00
monitor sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
nkf sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
objspace Prevent objects from moving while iterating the heap 2020-10-06 16:22:01 -07:00
openssl Use rb_intern_const instead of rb_intern in Init functions 2020-10-21 12:46:53 +09:00
pathname Promote pathname to default gems 2020-10-14 14:42:53 +09:00
psych Merge Psych-3.2.1 from ruby/psych 2020-12-14 20:13:12 +09:00
pty sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
racc/cparse Use rb_intern_const instead of rb_intern in Init functions 2020-10-21 12:46:53 +09:00
rbconfig/sizeof sed -i '/rmodule.h/d' 2020-08-27 16:42:06 +09:00
readline [ruby/readline-ext] Rename depend.gem with depend-gem 2020-12-03 17:35:29 +09:00
ripper ripper: return pushed new token instead of the token list 2020-12-15 10:26:50 +09:00
rubyvm Added depend files 2019-07-14 01:31:29 +09:00
socket Remove unimplemented parameter from comment 2020-12-11 11:13:24 +09:00
stringio delete deprecated IO-like methods 2020-12-03 12:47:51 +09:00
strscan mark regex internal to string scanner 2020-10-02 12:01:57 -07:00
syslog Promote syslog to default gems 2020-09-10 20:42:53 +09:00
win32 Use Fiddle::Importer directly 2020-11-11 09:27:36 +09:00
win32ole Add string encoding IBM720 alias CP720 (#3803) 2020-11-22 22:23:40 +09:00
zlib [ruby/zlib] Add Zlib::Inflate#inflate :buffer keyword argument 2020-12-04 19:12:32 +09:00
.document Update ext/.document 2020-12-01 17:35:28 +09:00
extmk.rb Configure static extensions only if in charge 2019-11-19 15:11:41 +09:00
Setup Removed sdbm entries from toolchanins 2020-06-19 08:26:47 +09:00
Setup.atheos Removed sdbm entries from toolchanins 2020-06-19 08:26:47 +09:00
Setup.nt Removed sdbm entries from toolchanins 2020-06-19 08:26:47 +09:00