mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 10:33:58 +02:00
* numeric.c (flo_divmod): round to the nearest integer. [ ruby-Bugs-14540 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
88b29643d9
commit
9bb7c21970
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 ]
|
||||||
|
|
||||||
Mon Nov 12 16:52:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Nov 12 16:52:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/mkmf.rb (create_makefile): rdoc about srcprefix. a patch from
|
* lib/mkmf.rb (create_makefile): rdoc about srcprefix. a patch from
|
||||||
|
|
|
@ -736,7 +736,7 @@ flo_divmod(x, 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.8.6"
|
#define RUBY_VERSION "1.8.6"
|
||||||
#define RUBY_RELEASE_DATE "2007-11-12"
|
#define RUBY_RELEASE_DATE "2007-11-13"
|
||||||
#define RUBY_VERSION_CODE 186
|
#define RUBY_VERSION_CODE 186
|
||||||
#define RUBY_RELEASE_CODE 20071112
|
#define RUBY_RELEASE_CODE 20071113
|
||||||
#define RUBY_PATCHLEVEL 5000
|
#define RUBY_PATCHLEVEL 5000
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
#define RUBY_VERSION_TEENY 6
|
#define RUBY_VERSION_TEENY 6
|
||||||
#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…
Add table
Add a link
Reference in a new issue