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 add #include guard hack 2020-04-13 16:06:00 +09:00
compile.h Warn more duplicate literal hash keys 2021-06-03 15:11:18 +09:00
compilers.h Update compilers.h [ci skip] 2021-01-05 01:06:07 +09:00
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 add #include guard hack 2020-04-13 16:06:00 +09:00
enc.h add #include guard hack 2020-04-13 16:06:00 +09:00
encoding.h rb_enc_interned_str: handle autoloaded encodings 2021-03-22 21:37:48 +09:00
enum.h add #include guard hack 2020-04-13 16:06:00 +09:00
enumerator.h add #include guard hack 2020-04-13 16:06:00 +09:00
error.h Specify version to remove as bare numbers 2021-06-30 10:47:01 +09:00
eval.h add #include guard hack 2020-04-13 16:06:00 +09:00
file.h add #include guard hack 2020-04-13 16:06:00 +09:00
fixnum.h Update fixnum.h 2020-12-01 20:40:33 +09:00
gc.h Don't export rb_gc_ractor_newobj_cache_clear 2021-07-28 13:51:22 -04:00
hash.h Ractor.make_shareable(obj) 2020-10-21 07:59:24 +09:00
imemo.h Partially revert 2c7d3b3a72 2021-04-27 17:05:19 +09:00
inits.h add #include guard hack 2020-04-13 16:06:00 +09:00
io.h add #include guard hack 2020-04-13 16:06:00 +09:00
load.h add #include guard hack 2020-04-13 16:06:00 +09:00
loadpath.h add #include guard hack 2020-04-13 16:06:00 +09:00
math.h add #include guard hack 2020-04-13 16:06:00 +09:00
missing.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
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 Moved rb_callable_receiver internal 2020-10-06 10:11:51 +09:00
process.h Allow Dir.home to work for non-login procs when $HOME not set 2020-05-23 23:16:28 +09:00
random.h add #include guard hack 2020-04-13 16:06:00 +09:00
range.h Feature #16812: Allow slicing arrays with ArithmeticSequence (#3241) 2020-10-21 02:40:18 +09:00
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 sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
serial.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
signal.h add #include guard hack 2020-04-13 16:06:00 +09:00
static_assert.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
string.h Move rb_str_escape function declaration 2021-07-11 18:26:20 +09:00
struct.h include/ruby/backward/2/r_cast.h: deprecate 2020-08-27 15:03:36 +09:00
symbol.h add #include guard hack 2020-04-13 16:06:00 +09:00
thread.h Rename to `Fiber#set_scheduler`. 2020-11-07 23:39:50 +13:00
time.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
transcode.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
util.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
variable.h tuning ivar set 2020-12-16 13:06:13 +09:00
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