mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
should not call round(3); close #109
This commit is contained in:
@@ -543,7 +543,6 @@ flo_round(mrb_state *mrb, /*int argc, mrb_value *argv,*/ mrb_value num)
|
||||
number = d - (d - number >= 0.5);
|
||||
}
|
||||
|
||||
number = round(number);
|
||||
if (ndigits < 0) number *= f;
|
||||
else number /= f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user