summaryrefslogtreecommitdiffhomepage
path: root/src/numeric.c
AgeCommit message (Expand)Author
2014-02-17fdigit may be negative due to error if mrb_float is 32bit (e.g. 10**36 on 32b...Yukihiro "Matz" Matsumoto
2014-02-17fix mrb_flo_to_str() exponent problemh2so5
2014-02-15modify mrb_to_str() in order to display big float numbertakkaw
2014-02-09Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUEYukihiro "Matz" Matsumoto
2014-02-06Merge pull request #1688 from cubicdaiya/issues/unnecessary_semicolonYukihiro "Matz" Matsumoto
2014-02-06remove unnecessary semicoloncubicdaiya
2014-02-06use mrb_str_new_lit() more widelyYukihiro "Matz" Matsumoto
2014-02-03add Float#nan?Tomoyuki Sahara
2014-01-31use mrb_bool, FALSE and TRUE morecremno
2014-01-02remove various preprocessor conditionalscremno
2013-12-19Fix typo from expornent to exponentNobuhiro Iwamatsu
2013-11-09Change supress to suppressCarson McDonald
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-15Merge upstreamDaniel Bovensiepen
2013-06-17Add ISO Number to Numeric, Integer and FloatDaniel Bovensiepen
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