summaryrefslogtreecommitdiffhomepage
path: root/src/numeric.c
AgeCommit message (Collapse)Author
2015-06-24Remove 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-13re-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-12add Float::{INFINITY,NAN} if availableYukihiro "Matz" Matsumoto
2014-10-02Pacify MSVC warnings for numeric.c, proc.c, and symbol.cHiroshi Mimaki
2014-08-30remove unnecessary MRB_API from mrb_num_div(); close #2578Yukihiro "Matz" Matsumoto
2014-08-26Merge pull request #2561 from cubicdaiya/issues/space_EOLYukihiro "Matz" Matsumoto
Remove spaces in end-of-line.
2014-08-25Fix Numeric#pow behavior.Tatsuhiko Kubo
* Before 2 ** -1 #=> 0 * After 2 ** -1 #=> 0.5
2014-08-25Remove spaces in end-of-line.Tatsuhiko Kubo
2014-08-15Merge pull request #2533 from suzukaze/fix-indentsYukihiro "Matz" Matsumoto
Fix indents in numeric.c
2014-08-15Fix indents in numeric.cJun Hiroe
2014-08-15Refactor flo_mod func in numeric.cJun Hiroe
2014-08-13Remove some roundoff from mrb_flo_to_strchasonr
2014-08-13remove unnecessary mrb_float casting; ref #2531Yukihiro "Matz" Matsumoto
2014-08-13refactor mrb_hash_shift, num_pow, flo_eq, flo_finite_p methodkkkkkt
2014-08-04add MRB_API modifiers to mruby API functionsYukihiro "Matz" Matsumoto
2014-07-12remove spaces after open parensYukihiro "Matz" Matsumoto
2014-07-09Clean up value.h and mrb_value boxingDavid Turnbull
2014-07-04Fix type checking in `mrb_flo_to_fixnum`.take_cheeze
2014-05-17Add comment to Fixnum Class.yui-knk
2014-05-13Make sure c is large enough if there is an overflowCarson McDonald
2014-05-13fix overflow error like #2244 on MRB_WORD_BOXINGYukihiro "Matz" Matsumoto
2014-05-05refactor fix_modAkira Kuroda
fix unreachable condition use b
2014-05-05add function for checked mrb_int subtractioncremno
2014-05-05add function for checked mrb_int additioncremno
2014-05-04simply use `isfinite`cremno
2014-05-03Refactor rshiftJun Hiroe
2014-04-30remove trailing spacesNobuyoshi Nakada
2014-04-26Refactor fix_xor()Jun Hiroe
2014-04-26Refactor fix_or()Jun Hiroe
2014-04-26Refactor fix_and()Jun Hiroe
2014-04-26Refactor flo_finite_p()Jun Hiroe
2014-04-16Refactor fix_to_f in numeric.cJun Hiroe
2014-04-16Refactor lshift in numeric.cJun Hiroe
2014-04-16Refactor fix_shift_get_width in numeric.cJun Hiroe
2014-04-15resolve conflictYukihiro "Matz" Matsumoto
2014-04-13Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2014-04-13avoid function style parens after "return"; ref #2055Yukihiro "Matz" Matsumoto
2014-04-13Fix indent in bit_coerceJun Hiroe
2014-04-13Refactor fix_rshiftJun Hiroe
2014-04-13Refactor fix_lshiftJun Hiroe
2014-04-12Refactor fix_revJun Hiroe
2014-04-12simplify Fixnum#==Yukihiro "Matz" Matsumoto
2014-04-12simplify Numeric#eql?Yukihiro "Matz" Matsumoto
2014-04-12remove num_equal() that potentially cause infinite loopYukihiro "Matz" Matsumoto
2014-04-11Numeric#round takes optinal argument; close #2042Yukihiro "Matz" Matsumoto
2014-03-28do not use "to_f" to retrieve floats in mrb_get_args(); close #1965Yukihiro "Matz" Matsumoto
2014-03-21Float#round fix bug for infinity and nan casesksss
2014-03-18Reduce implicit type casts.Masaki Muranaka
2014-03-17Merge pull request #1871 from ksss/numeric-plusYukihiro "Matz" Matsumoto
fix bug when `0 + other object`
2014-03-17Merge pull request #1872 from ksss/numeric-mulYukihiro "Matz" Matsumoto
fix bug when `0 * other object`