E(prec)
Computes e (the base of natural logarithms) to the specified number of digits of precision, numeric.
BigMath.E(10).to_s #=> "0.271828182845904523536028752390026306410273e1"
# File ext/bigdecimal/lib/bigdecimal/math.rb, line 228 def E(prec) raise ArgumentError, "Zero or negative precision for E" if prec <= 0 BigMath.exp(1, prec) end