diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-11 14:01:22 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-11 14:01:22 +0000 |
commit | 11dde7770d8c9dcbe902e9176c2d2b09f00771d3 (patch) | |
tree | 912ebc2b296e1e35ff0c8e314f8b0e9c80be9f59 /numeric.c | |
parent | 471e3a301624a86f08c86a643321c3656abbc9fd (diff) | |
download | ruby-11dde7770d8c9dcbe902e9176c2d2b09f00771d3.tar.gz |
* numeric.c (Init_Numeric): Fix document for Float::MIN and
Float::EPSILON.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -4264,9 +4264,14 @@ Init_Numeric(void) */ 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) 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. */ |