mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
35e467080c
The previous implementation could result in a returned float that is 1/(10**ndigits) too low. First try adding one before dividing, and if that results in a value that is greater than the initial number, then try the original calculation. Spec added for ciel, but the issue doesn't appear to affect ciel, at least not for the same number. If the issue does effect ciel, a similar fix could probably work for it. Fixes [Bug #18018] |
||
---|---|---|
.. | ||
-ext- | ||
base64 | ||
benchmark | ||
bigdecimal | ||
cgi | ||
coverage | ||
csv | ||
date | ||
did_you_mean | ||
digest | ||
drb | ||
dtrace | ||
erb | ||
error_highlight | ||
etc | ||
excludes | ||
fiber | ||
fiddle | ||
fileutils | ||
fixtures/fake_sorted_set_gem | ||
io | ||
irb | ||
json | ||
lib | ||
logger | ||
mkmf | ||
monitor | ||
net | ||
nkf | ||
objspace | ||
open-uri | ||
openssl | ||
optparse | ||
ostruct | ||
pathname | ||
psych | ||
racc | ||
rdoc | ||
readline | ||
reline | ||
resolv | ||
rinda | ||
ripper | ||
ruby | ||
rubygems | ||
socket | ||
stringio | ||
strscan | ||
syslog | ||
uri | ||
win32ole | ||
yaml | ||
zlib | ||
runner.rb | ||
test_abbrev.rb | ||
test_delegate.rb | ||
test_extlibs.rb | ||
test_find.rb | ||
test_forwardable.rb | ||
test_ipaddr.rb | ||
test_mutex_m.rb | ||
test_observer.rb | ||
test_open3.rb | ||
test_pp.rb | ||
test_prettyprint.rb | ||
test_pstore.rb | ||
test_pty.rb | ||
test_rbconfig.rb | ||
test_securerandom.rb | ||
test_set.rb | ||
test_shellwords.rb | ||
test_singleton.rb | ||
test_sorted_set.rb | ||
test_syslog.rb | ||
test_tempfile.rb | ||
test_time.rb | ||
test_timeout.rb | ||
test_tmpdir.rb | ||
test_trick.rb | ||
test_tsort.rb | ||
test_unicode_normalize.rb | ||
test_weakref.rb |