summaryrefslogtreecommitdiffhomepage
path: root/src/numeric.c
AgeCommit message (Expand)Author
2014-03-16float + nil should be raise TypeErrorksss
2014-03-16fix bug when `0 * other object`ksss
2014-03-16fix bug when `0 + other object`ksss
2014-03-11add MRB_INT_BITcremno
2014-03-08use NAN and INFINITYcremno
2014-02-26resolve conflictYukihiro "Matz" Matsumoto
2014-02-25avoid accessing uninitialized string; ref ac936fcYukihiro "Matz" Matsumoto
2014-02-23move declaration to the top of the block; ref #1727Yukihiro "Matz" Matsumoto
2014-02-22preserve significands in float-string conversionh2so5
2014-02-22powered num may be infinite in float-string conversionYukihiro "Matz" Matsumoto
2014-02-18mrb_flo_to_str: internal linkagecremno
2014-02-17more mrb_flo_to_str fixescremno
2014-02-17use double instead of mrb_float (that may be single precision float) to reduc...Yukihiro "Matz" Matsumoto
2014-02-17remove trailing zeros from float string representationYukihiro "Matz" Matsumoto
2014-02-17define FLO_EPSILON depends on float/doubleYukihiro "Matz" Matsumoto
2014-02-17remove max_digit from mrb_flo_to_str()Yukihiro "Matz" Matsumoto
2014-02-17small refactoring; direct returnYukihiro "Matz" Matsumoto
2014-02-17use powf() instead of pow() on MRB_USE_FLOATYukihiro "Matz" Matsumoto
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