| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2017-06-17 | Use `mrb_int` instead of `int`. | Yukihiro "Matz" Matsumoto | |
| 2017-05-31 | Avoid infinite loop on negative exponent; fix #3677 | Yukihiro "Matz" Matsumoto | |
| 2017-05-27 | Fixed rounding functions (round,ceil,floor,truncate) in MRB_INT64. | Yukihiro "Matz" Matsumoto | |
| They didn't work well with inexact numbers (inf,nan). Fix #3671 | |||
| 2017-05-26 | Add new range check macro FIXABLE_FLOAT(); ref #3652 | Yukihiro "Matz" Matsumoto | |
| When MRB_INT64, valid value range of mrb_int is bigger than double, which only has 53 bits significant precision. | |||
| 2017-05-26 | Fix indentation in mrb_init_numeric() | Yukihiro "Matz" Matsumoto | |
| 2017-05-26 | fixup! Let Fixnum#{ceil,floor,round,truncate} to return itself; #3652 | Yukihiro "Matz" Matsumoto | |
| 2017-05-26 | Let Fixnum#{ceil,floor,round,truncate} to return itself; #3652 | Yukihiro "Matz" Matsumoto | |
| 2017-05-26 | Try our own `ipow()` if both base and exp are fixnums; fix #3652 | Yukihiro "Matz" Matsumoto | |
| 2017-04-21 | `mrb_int` may overflow in bit-shifting; fix #3620 | Yukihiro "Matz" Matsumoto | |
| 2017-04-21 | Bit-shifting zero should be zero; ref #3620 | Yukihiro "Matz" Matsumoto | |
| 2017-04-03 | Unify `else` clause style | Yukihiro "Matz" Matsumoto | |
| 2017-03-29 | Should raise FloatDomainError | ksss | |
| 2017-03-20 | Add explicit cast from float to mrb_int. | Yukihiro "Matz" Matsumoto | |
| 2017-01-01 | Initialize potentially uninitialized variable z | Yukihiro "Matz" Matsumoto | |
| 2016-12-08 | fix build on vs2013-vs2015 | Yasuhiro Matsumoto | |
| 2016-11-30 | Prohibit instantiation of immediate objects | Yukihiro "Matz" Matsumoto | |
| 2016-11-23 | Implement Float shift methods in C | Yukihiro "Matz" Matsumoto | |
| 2016-11-22 | int64_value(): use FIXABLE() | Yukihiro "Matz" Matsumoto | |
| 2016-11-22 | accept floats as bit operator operands; fix #3260 | Yukihiro "Matz" Matsumoto | |
| 2016-11-22 | Removed fix_shift_get_width() | Yukihiro "Matz" Matsumoto | |
| Fixnum is usually big enough for shift width. | |||
| 2016-11-22 | add bit operators ~,&,|,^ to Float class (mruby special) | Yukihiro "Matz" Matsumoto | |
| 2016-09-28 | Removed trailing spaces | Nobuyoshi Nakada | |
| 2016-05-10 | use mrb_int_mul_overflow() | cremno | |
| 2015-11-27 | include changed from by quotes ("") to by brackets (<>); close #3032 | Yukihiro "Matz" Matsumoto | |
| 2015-11-19 | integer range check was moved to mrb_flo_to_fixnum(); ref #3025 | Yukihiro "Matz" Matsumoto | |
| 2015-11-18 | Bugfix nagative-number lshift() bit overflow | murase_syuka | |
| 2015-11-18 | Bugfix lshift() bit overflow; close #3023 | murase_syuka | |
| 2015-11-16 | fix comment | murase_syuka | |
| 2015-10-20 | Increasing docs coverage | Seba Gamboa | |
| 2015-09-02 | Integer << and >> to use Float instead of raising RangeError | Yukihiro "Matz" Matsumoto | |
| 2015-08-07 | FIXABLE() may work wrong on MRB_INT64; fix #2909 | Yukihiro "Matz" Matsumoto | |
| 2015-06-29 | Avoid a narrowing cast in flo_round under MRB_INT64. | Simon Génier | |
| 2015-06-24 | Remove unnecessary backticks. | Franck Verrot | |
| Dr Markus Kuhn published in 1999 an article [1] explaining in details why we shouldn't use the ASCII grave accent (0x60) as a left quotation. Backticks have been used most notably to produce nice-looking LaTeX documents but it doesn't seem to be an issue on modern platforms and for the oldest ones, there are workarounds as mentioned by Dr Kuhn. [1]: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html | |||
| 2015-02-13 | re-implement mrb_float_to_str() | cremno | |
| The new implementation is backwards incompatible, but I couldn't find any usage outside mruby and I also couldn't think of a different and good name. All ISO C99 printf conversion specifiers for floating point numbers and an optional precision are supported. It is largely based on code from the MIT licensed musl libc (http://www.musl-libc.org/) and its floating point printing is exact (unlike the current code behind Float#to_s). | |||
| 2014-11-12 | add Float::{INFINITY,NAN} if available | Yukihiro "Matz" Matsumoto | |
| 2014-10-02 | Pacify MSVC warnings for numeric.c, proc.c, and symbol.c | Hiroshi Mimaki | |
| 2014-08-30 | remove unnecessary MRB_API from mrb_num_div(); close #2578 | Yukihiro "Matz" Matsumoto | |
| 2014-08-26 | Merge pull request #2561 from cubicdaiya/issues/space_EOL | Yukihiro "Matz" Matsumoto | |
| Remove spaces in end-of-line. | |||
| 2014-08-25 | Fix Numeric#pow behavior. | Tatsuhiko Kubo | |
| * Before 2 ** -1 #=> 0 * After 2 ** -1 #=> 0.5 | |||
| 2014-08-25 | Remove spaces in end-of-line. | Tatsuhiko Kubo | |
| 2014-08-15 | Merge pull request #2533 from suzukaze/fix-indents | Yukihiro "Matz" Matsumoto | |
| Fix indents in numeric.c | |||
| 2014-08-15 | Fix indents in numeric.c | Jun Hiroe | |
| 2014-08-15 | Refactor flo_mod func in numeric.c | Jun Hiroe | |
| 2014-08-13 | Remove some roundoff from mrb_flo_to_str | chasonr | |
| 2014-08-13 | remove unnecessary mrb_float casting; ref #2531 | Yukihiro "Matz" Matsumoto | |
| 2014-08-13 | refactor mrb_hash_shift, num_pow, flo_eq, flo_finite_p method | kkkkkt | |
| 2014-08-04 | add MRB_API modifiers to mruby API functions | Yukihiro "Matz" Matsumoto | |
| 2014-07-12 | remove spaces after open parens | Yukihiro "Matz" Matsumoto | |
| 2014-07-09 | Clean up value.h and mrb_value boxing | David Turnbull | |
| 2014-07-04 | Fix type checking in `mrb_flo_to_fixnum`. | take_cheeze | |
