* numeric.c (num_round): should convert self to Float.
[ruby-dev:30860] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
609ebfe51f
commit
b8cb3679bb
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jun 1 11:33:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* numeric.c (num_round): should convert self to Float.
|
||||||
|
[ruby-dev:30860]
|
||||||
|
|
||||||
Fri Jun 1 02:01:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Jun 1 02:01:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* numeric.c (flo_round): now takes optional argument to specify
|
* numeric.c (flo_round): now takes optional argument to specify
|
||||||
|
@ -1343,11 +1343,7 @@ num_ceil(VALUE num)
|
|||||||
static VALUE
|
static VALUE
|
||||||
num_round(int argc, VALUE* argv, VALUE num)
|
num_round(int argc, VALUE* argv, VALUE num)
|
||||||
{
|
{
|
||||||
VALUE nd;
|
return flo_round(argc, argv, rb_Float(num));
|
||||||
|
|
||||||
rb_scan_args(argc, argv, "01", &nd);
|
|
||||||
nd = rb_Float(nd);
|
|
||||||
return flo_round(argc, &nd, num);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user