mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 17:43:59 +02:00
merge revision(s) 51534:
* numeric.c (Init_Numeric): Fix document for Float::MIN and Float::EPSILON. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@51625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c732611149
commit
968edaaeb2
3 changed files with 15 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Aug 18 20:10:13 2015 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* numeric.c (Init_Numeric): Fix document for Float::MIN and
|
||||||
|
Float::EPSILON.
|
||||||
|
|
||||||
Mon Aug 17 23:07:47 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
Mon Aug 17 23:07:47 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||||
|
|
||||||
* lib/rubygems.rb: bump version to 2.4.5.1. this version fixed
|
* lib/rubygems.rb: bump version to 2.4.5.1. this version fixed
|
||||||
|
|
|
@ -4179,9 +4179,14 @@ Init_Numeric(void)
|
||||||
*/
|
*/
|
||||||
rb_define_const(rb_cFloat, "MAX_10_EXP", INT2FIX(DBL_MAX_10_EXP));
|
rb_define_const(rb_cFloat, "MAX_10_EXP", INT2FIX(DBL_MAX_10_EXP));
|
||||||
/*
|
/*
|
||||||
* The smallest positive integer in a double-precision floating point.
|
* The smallest positive normalized number in a double-precision floating point.
|
||||||
*
|
*
|
||||||
* Usually defaults to 2.2250738585072014e-308.
|
* Usually defaults to 2.2250738585072014e-308.
|
||||||
|
*
|
||||||
|
* If the platform supports denormalized numbers,
|
||||||
|
* there are numbers between zero and Float::MIN.
|
||||||
|
* 0.0.next_float returns the smallest positive floating point number
|
||||||
|
* including denormalized numbers.
|
||||||
*/
|
*/
|
||||||
rb_define_const(rb_cFloat, "MIN", DBL2NUM(DBL_MIN));
|
rb_define_const(rb_cFloat, "MIN", DBL2NUM(DBL_MIN));
|
||||||
/*
|
/*
|
||||||
|
@ -4192,7 +4197,7 @@ Init_Numeric(void)
|
||||||
rb_define_const(rb_cFloat, "MAX", DBL2NUM(DBL_MAX));
|
rb_define_const(rb_cFloat, "MAX", DBL2NUM(DBL_MAX));
|
||||||
/*
|
/*
|
||||||
* The difference between 1 and the smallest double-precision floating
|
* The difference between 1 and the smallest double-precision floating
|
||||||
* point number.
|
* point number greater than 1.
|
||||||
*
|
*
|
||||||
* Usually defaults to 2.2204460492503131e-16.
|
* Usually defaults to 2.2204460492503131e-16.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#define RUBY_VERSION "2.2.3"
|
#define RUBY_VERSION "2.2.3"
|
||||||
#define RUBY_RELEASE_DATE "2015-08-17"
|
#define RUBY_RELEASE_DATE "2015-08-18"
|
||||||
#define RUBY_PATCHLEVEL 171
|
#define RUBY_PATCHLEVEL 172
|
||||||
|
|
||||||
#define RUBY_RELEASE_YEAR 2015
|
#define RUBY_RELEASE_YEAR 2015
|
||||||
#define RUBY_RELEASE_MONTH 8
|
#define RUBY_RELEASE_MONTH 8
|
||||||
#define RUBY_RELEASE_DAY 17
|
#define RUBY_RELEASE_DAY 18
|
||||||
|
|
||||||
#include "ruby/version.h"
|
#include "ruby/version.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue