summaryrefslogtreecommitdiffhomepage
path: root/src/numeric.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-09 08:18:39 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-09 08:18:39 +0900
commit2e4e7f7cd15e8ccd6bc6bf8608e0f167f68e2a22 (patch)
treef7e653ae3a4ce7c99f50ad32a60432bd5e576b6b /src/numeric.c
parent8a6d4a8b82fdcca70a16b6c837e7177e5fe6b90f (diff)
downloadmruby-2e4e7f7cd15e8ccd6bc6bf8608e0f167f68e2a22.tar.gz
mruby-2e4e7f7cd15e8ccd6bc6bf8608e0f167f68e2a22.zip
should not call round(3); close #109
Diffstat (limited to 'src/numeric.c')
-rw-r--r--src/numeric.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/numeric.c b/src/numeric.c
index f14a10993..054e09603 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -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;
}