mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add word "Euler's number" to Math::E docs
When searching for this constant, I landed on the correct page https://ruby-doc.org/core-2.6.4/Math.html however I was using CMD+f to search for "Euler" and did not find it. If we add the full name for this constant then it will be easier to search for and find.
This commit is contained in:
parent
a8b310e14c
commit
94b79bffb1
Notes:
git
2019-08-31 04:40:14 +09:00
1 changed files with 1 additions and 1 deletions
2
math.c
2
math.c
|
@ -982,7 +982,7 @@ InitVM_Math(void)
|
|||
rb_define_const(rb_mMath, "PI", DBL2NUM(M_PI));
|
||||
|
||||
#ifdef M_E
|
||||
/* Definition of the mathematical constant E (e) as a Float number. */
|
||||
/* Definition of the mathematical constant for Euler's number E (e) as a Float number. */
|
||||
rb_define_const(rb_mMath, "E", DBL2NUM(M_E));
|
||||
#else
|
||||
rb_define_const(rb_mMath, "E", DBL2NUM(exp(1.0)));
|
||||
|
|
Loading…
Add table
Reference in a new issue