should not call round(3); close #109

This commit is contained in:
Yukihiro Matsumoto
2012-05-09 08:18:39 +09:00
parent 8a6d4a8b82
commit 2e4e7f7cd1
-1
View File
@@ -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;
}