mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (flo_divmod): round to the nearest integer. [ ruby-Bugs-14540 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
862cd3cd3c
commit
8d464a9948
3 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Nov 13 02:57:04 2007 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
|
||||||
|
|
||||||
|
* numeric.c (flo_divmod): round to the nearest integer.
|
||||||
|
[ ruby-Bugs-14540 ]
|
||||||
|
|
||||||
Tue Nov 13 00:36:16 2007 Shugo Maeda <shugo@ruby-lang.org>
|
Tue Nov 13 00:36:16 2007 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
* test/ruby/test_settracefunc.rb: fixed tests for set_trace_func.
|
* test/ruby/test_settracefunc.rb: fixed tests for set_trace_func.
|
||||||
|
|
|
@ -715,7 +715,7 @@ flo_divmod(VALUE x, VALUE y)
|
||||||
}
|
}
|
||||||
flodivmod(RFLOAT(x)->value, fy, &div, &mod);
|
flodivmod(RFLOAT(x)->value, fy, &div, &mod);
|
||||||
if (FIXABLE(div)) {
|
if (FIXABLE(div)) {
|
||||||
val = div;
|
val = round(div);
|
||||||
a = LONG2FIX(val);
|
a = LONG2FIX(val);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#define RUBY_VERSION "1.9.0"
|
#define RUBY_VERSION "1.9.0"
|
||||||
#define RUBY_RELEASE_DATE "2007-11-12"
|
#define RUBY_RELEASE_DATE "2007-11-13"
|
||||||
#define RUBY_VERSION_CODE 190
|
#define RUBY_VERSION_CODE 190
|
||||||
#define RUBY_RELEASE_CODE 20071112
|
#define RUBY_RELEASE_CODE 20071113
|
||||||
#define RUBY_PATCHLEVEL 0
|
#define RUBY_PATCHLEVEL 0
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
#define RUBY_VERSION_TEENY 0
|
#define RUBY_VERSION_TEENY 0
|
||||||
#define RUBY_RELEASE_YEAR 2007
|
#define RUBY_RELEASE_YEAR 2007
|
||||||
#define RUBY_RELEASE_MONTH 11
|
#define RUBY_RELEASE_MONTH 11
|
||||||
#define RUBY_RELEASE_DAY 12
|
#define RUBY_RELEASE_DAY 13
|
||||||
|
|
||||||
#ifdef RUBY_EXTERN
|
#ifdef RUBY_EXTERN
|
||||||
RUBY_EXTERN const char ruby_version[];
|
RUBY_EXTERN const char ruby_version[];
|
||||||
|
|
Loading…
Reference in a new issue