1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/internal
Jeremy Evans d16b68cb22 Use Rational for Float#round with ndigits > 14
ndigits higher than 14 can result in values that are slightly too
large due to floating point limitations.  Converting to rational
for the calculation and then back to float fixes these issues.

Fixes [Bug #14635]
Fixes [Bug #17183]

Co-authored by: Yusuke Endoh <mame@ruby-lang.org>
2021-08-06 15:03:51 -07:00
..
array.h Remove duplicate declarations 2021-07-28 16:58:25 +09:00
bignum.h Add RBIMPL_RVALUE_EMBED_LEN_MAX neeeded by internal/bignum.h 2021-05-04 14:56:55 +02:00
bits.h get rid of using __builtin_unreachable directly [Bug #17787] 2021-04-10 16:05:01 +09:00
class.h Add a cache for class variables 2021-06-18 10:02:44 -07:00
compar.h
compile.h Warn more duplicate literal hash keys 2021-06-03 15:11:18 +09:00
compilers.h
complex.h cdhash_cmp: can also take complex 2021-05-12 10:30:46 +09:00
cont.h Expose rb_obj_is_fiber. 2021-07-13 19:28:40 +12:00
dir.h
enc.h
encoding.h rb_enc_interned_str: handle autoloaded encodings 2021-03-22 21:37:48 +09:00
enum.h
enumerator.h
error.h Specify version to remove as bare numbers 2021-06-30 10:47:01 +09:00
eval.h
file.h
fixnum.h
gc.h Don't export rb_gc_ractor_newobj_cache_clear 2021-07-28 13:51:22 -04:00
hash.h
imemo.h Partially revert 2c7d3b3a72 2021-04-27 17:05:19 +09:00
inits.h
io.h
load.h
loadpath.h
math.h
missing.h
numeric.h Add Integer.try_convert [Feature #15211] 2021-07-16 17:49:53 +09:00
object.h Share freeze option handling 2021-06-28 10:53:37 +09:00
parse.h ast.rb: RubyVM::AST.parse and .of accepts save_script_lines: true 2021-06-18 02:34:27 +09:00
proc.h
process.h
random.h
range.h
rational.h Use Rational for Float#round with ndigits > 14 2021-08-06 15:03:51 -07:00
re.h Warn more duplicate literal hash keys 2021-06-03 15:11:18 +09:00
sanitizers.h
serial.h
signal.h
static_assert.h
string.h Move rb_str_escape function declaration 2021-07-11 18:26:20 +09:00
struct.h
symbol.h
thread.h
time.h
transcode.h
util.h
variable.h
vm.h Make it possible to get AST::Node from Thread::Backtrace::Location 2021-06-18 03:35:38 +09:00
warnings.h Fix some typos by spell checker 2021-04-26 10:07:41 +09:00