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
bits.h
class.h Add a cache for class variables 2021-06-18 10:02:44 -07:00
compar.h
compile.h
compilers.h
complex.h
cont.h Expose rb_obj_is_fiber. 2021-07-13 19:28:40 +12:00
dir.h
enc.h
encoding.h
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
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