summaryrefslogtreecommitdiffhomepage
path: root/src/numeric.c
AgeCommit message (Expand)Author
2013-10-23fix #1542fleuria
2013-10-22move some methods to make floats and integers compatible [mruby special]Yukihiro "Matz" Matsumoto
2013-10-22implement some Numeric methods in RubyYukihiro "Matz" Matsumoto
2013-10-21implement Integer#succ in RubyYukihiro "Matz" Matsumoto
2013-10-20Fixnum#succ may overflowYukihiro "Matz" Matsumoto
2013-08-07class.c and numeric.c: fixed MSVC warningsCremno
2013-07-25replace assert with mrb_assertfleuria
2013-07-22change else formattingYukihiro "Matz" Matsumoto
2013-07-06Change width to size_t to fix warningCarson McDonald
2013-06-08new is removed from Integer so doesn't need to be removed again in FixnumCarson McDonald
2013-05-26Add MRB_WORD_BOXING mode (represent mrb_value as a word)kimu_shu
2013-04-25rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206Yukihiro "Matz" Matsumoto
2013-03-31Integer.round have no arg.Masaki Muranaka
2013-03-31Remove unused functions.Masaki Muranaka
2013-03-31Move Integer.{floor,ceil,round,truncate} to mrblib/. For maintainability.Masaki Muranaka
2013-03-31revive #to_intYukihiro "Matz" Matsumoto
2013-03-30move to_i from fixnum to integer; remove reference of to_int which is not in ISOYukihiro "Matz" Matsumoto
2013-03-30undef Integer#new; ref #1111Yukihiro "Matz" Matsumoto
2013-03-29Rename mrb_fix2str() to mrb_fixnum_to_str(). This is for naming consistency.Masaki Muranaka
2013-03-29Change the second argument of mrb_flo_to_str().Masaki Muranaka
2013-03-29Remove mrb_flt2big() as there is no bignum in the core.Masaki Muranaka
2013-03-29Sort include files. Some redundant includes are removed.Masaki Muranaka
2013-03-29Remove limits.h from numeric.h. Add limits.h to some C files.Masaki Muranaka
2013-03-27use new mrb_format API from mrb_raisef; its only format specifier is "%S" (st...Yukihiro Matz Matsumoto
2013-03-24Adjusted indent, space and tabMATSUMOTO Ryosuke
2013-03-24Use size_t instead of int. This is for portability.Yukihiro Matz Matsumoto
2013-03-19rename mrb_true_or_false_value() to mrb_bool_value()Yukihiro Matz Matsumoto
2013-03-19Use mrb_true_or_false_value() / in fix_equal().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in flo_finite_p().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in flo_eq().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in num_eql().Masaki Muranaka
2013-03-18personal style preference on function call in flo_to_sYukihiro Matz Matsumoto
2013-03-17Add a new function mrb_flo_to_str(). Use it instead of sprintf() as possible.Masaki Muranaka
2013-03-17Add float.h. It exists even if the environment was freestanding. It has been ...Masaki Muranaka
2013-03-16Remove stdlib.h from mruby.h. It is for portability (care for freestanding en...Masaki Muranaka
2013-03-05Include stdio.h in mrbconf.h instead of C extension sources.Masaki Muranaka
2013-03-03Remove trailing whitespaces. This is just a cosmetic change.Masaki Muranaka
2013-02-22Merge pull request #872 from monaka/pr-fix-mrb_fix2strYukihiro "Matz" Matsumoto
2013-02-23Cleanup shift operations.Masaki Muranaka
2013-02-23Fix an underlying bug. flodivmod() will be crashed in case ((y == 0) && ((div...Masaki Muranaka
2013-02-23Add a comment.Masaki Muranaka
2013-02-23Remove a comment at an unsuitable place.Masaki Muranaka
2013-02-23Cosmetic changes. Just added empty lines.Masaki Muranaka
2013-02-23Fix mrb_fix2str() to enable handling some negative values correctly. This fix...Masaki Muranaka
2013-02-03Prevent overflow of `Fixnum#to_s`.Masamitsu MURASE
2012-11-17l/rshift width as int. It was unsigned longYuichiro MASUI
2012-11-17int and mrb_int should not be mixed under -DMRB_INT64; may fix #557Yukihiro Matz Matsumoto
2012-11-04add mrb_float_p()Yukihiro Matz Matsumoto
2012-11-04replace FIXNUM_P() by mrb_fixnum_p()Yukihiro Matz Matsumoto
2012-10-27define convert method mrb_int/mrb_float with C stringYuichiro MASUI