summaryrefslogtreecommitdiffhomepage
path: root/src/numeric.c
AgeCommit message (Expand)Author
2021-05-26fmt_fp.c: move mruby specific `mrb_float_to_str` to `numeric.c`Yukihiro "Matz" Matsumoto
2021-05-21fmt_fp.c: remove `fmt` argument from `mrb_float_to_str()`.Yukihiro "Matz" Matsumoto
2021-05-17Global renaming regarding `integer` and `float`.Yukihiro "Matz" Matsumoto
2021-05-17Rename `mrb_fixnum_to_str` to `mrb_integer_to_str`.Yukihiro "Matz" Matsumoto
2021-05-17Rename `mrb_flo_to_fixnum` to `mrb_float_to_integer`.Yukihiro "Matz" Matsumoto
2021-04-24numeric.c: remove duplicated definitions; #5421Yukihiro "Matz" Matsumoto
2021-04-24numeric.c: fix errors from `MRB_NO_FLOAT`; close #5421Yukihiro "Matz" Matsumoto
2021-04-21numeric.c: update error messages in `int_pow`; ref #5420Yukihiro "Matz" Matsumoto
2021-04-21numeric.c: fix `int_pow` to detect integer overflow; fix #5420Yukihiro "Matz" Matsumoto
2021-04-16feat(CI): add the GitHub Super LinterJohn Bampton
2021-03-28numeric.c: function renaming.Yukihiro "Matz" Matsumoto
2021-03-19complex.c: overhaul complex operators.Yukihiro "Matz" Matsumoto
2021-03-19rational.c: overhaul rational operators.Yukihiro "Matz" Matsumoto
2021-03-19numeric.c: avoid integer overflow; close #5384Yukihiro "Matz" Matsumoto
2021-03-19`Float#divmod` with zero should cause `ZeroDivisionError`; #5384Yukihiro "Matz" Matsumoto
2021-03-18`Float::NAN/0` should be `Float::NAN`; ref a0b3378b3KOBAYASHI Shuji
2021-03-18numeric.c: float zero division should be infinity with sign kept; fix #5382Yukihiro "Matz" Matsumoto
2021-03-07bug(presym): Fix mrb_cmp declaration of <=> symbol for funcallRyan Lopopolo
2021-01-26Revert "Minimize the changes in #5277"Yukihiro "Matz" Matsumoto
2021-01-22Minimize the changes in #5277Yukihiro "Matz" Matsumoto
2021-01-21Merge branch 'avoid-including-presym.inc-in-existing-header-files' of https:/...Yukihiro "Matz" Matsumoto
2021-01-17Fix `int_quo` to do float division; fix #5268Yukihiro "Matz" Matsumoto
2021-01-17Make `mrb_to_flo()` to convert objects, not integer, not float; #5268Yukihiro "Matz" Matsumoto
2021-01-11Avoid including `presym.inc` in existing header filesKOBAYASHI Shuji
2020-12-24Check integer overflow in float bit operations.Yukihiro "Matz" Matsumoto
2020-12-15refactor: remove trailing whitespace from C, Header, Ruby and YAML filesJohn Bampton
2020-11-24Fix compiler errors from `MRB_NO_FLOAT`; #5185Yukihiro "Matz" Matsumoto
2020-11-21Update `Float#to_s` to keep trailing zero as CRuby does; ref 68cebb6Yukihiro "Matz" Matsumoto
2020-11-17Detect overflow in `flo_shift()`.Yukihiro "Matz" Matsumoto
2020-11-17Refactor integer division.Yukihiro "Matz" Matsumoto
2020-11-17Simplify `mrb_num_div_int()`.Yukihiro "Matz" Matsumoto
2020-11-14Integer operation should result in Integer.Yukihiro "Matz" Matsumoto
2020-11-09Add range check before casting float to integer.Yukihiro "Matz" Matsumoto
2020-11-06Skip too big left shift in `flo_shift()`.Yukihiro "Matz" Matsumoto
2020-11-06Avoid negating `MRB_INT_MIN` which is impossible.Yukihiro "Matz" Matsumoto
2020-10-12Extract `div` code in VM and make them shared by `div` methods.Yukihiro "Matz" Matsumoto
2020-10-12Remove obsolete `MRB_WITHOUT_FLOAT` macro from `numeric.c`.Yukihiro "Matz" Matsumoto
2020-10-12Stop warning on 64 bit platforms.Yukihiro "Matz" Matsumoto
2020-10-12Handle potential overflow in `int_div` and `flo_idiv`.Yukihiro "Matz" Matsumoto
2020-10-12Use `mrb_int_value()` instead of `mrb_fixnum_value()`.Yukihiro "Matz" Matsumoto
2020-10-12Reorganize `Integer` system.Yukihiro "Matz" Matsumoto
2020-10-12Make division by zero cause `ZeroDivisionError`.Yukihiro "Matz" Matsumoto
2020-10-12Rename `MRB_TT_FIXNUM` to `MRB_TT_INTEGER`.Yukihiro "Matz" Matsumoto
2020-10-12Always add trailing `.0` in `Float#inspect`; ref #4225KOBAYASHI Shuji
2020-10-12Integrate `Fixnum` class into `Integer` classdearblue
2020-10-12Rename float configuration option names.Yukihiro "Matz" Matsumoto
2020-10-12Use functions that take symbols to reduce string litrals in C.Yukihiro "Matz" Matsumoto
2020-10-12Use `mrb_funcall_id()` extensively.Yukihiro "Matz" Matsumoto
2020-10-12Fix argument error when built with MRB_WITHOUT_FLOAT flagssmallkirby
2020-08-08Return `NaN` for `0/0`; d8e060dYukihiro "Matz" Matsumoto