ruby-changes:39453
From: akr <ko1@a...>
Date: Tue, 11 Aug 2015 23:02:02 +0900 (JST)
Subject: [ruby-changes:39453] akr:r51534 (trunk): * numeric.c (Init_Numeric): Fix document for Float::MIN and
akr 2015-08-11 23:01:22 +0900 (Tue, 11 Aug 2015) New Revision: 51534 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51534 Log: * numeric.c (Init_Numeric): Fix document for Float::MIN and Float::EPSILON. Modified files: trunk/ChangeLog trunk/numeric.c Index: ChangeLog =================================================================== --- ChangeLog (revision 51533) +++ ChangeLog (revision 51534) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Aug 11 22:59:57 2015 Tanaka Akira <akr@f...> + + * numeric.c (Init_Numeric): Fix document for Float::MIN and + Float::EPSILON. + Tue Aug 11 15:22:31 2015 Nobuyoshi Nakada <nobu@r...> * include/ruby/ruby.h (ALLOCV_N): check integer overflow, as well Index: numeric.c =================================================================== --- numeric.c (revision 51533) +++ numeric.c (revision 51534) @@ -4264,9 +4264,14 @@ Init_Numeric(void) https://github.com/ruby/ruby/blob/trunk/numeric.c#L4264 */ 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. + * + * 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)); /* @@ -4277,7 +4282,7 @@ Init_Numeric(void) https://github.com/ruby/ruby/blob/trunk/numeric.c#L4282 rb_define_const(rb_cFloat, "MAX", DBL2NUM(DBL_MAX)); /* * The difference between 1 and the smallest double-precision floating - * point number. + * point number greater than 1. * * Usually defaults to 2.2204460492503131e-16. */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/