method

exp

ruby latest stable - Class: BigMath

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_2_180) is shown here.

exp(x, prec)
public

Computes the value of e (the base of natural logarithms) raised to the power of x, to the specified number of digits of precision.

If x is infinite or NaN, returns NaN.

BigMath::exp(BigDecimal.new(‘1’), 10).to_s -> “0.271828182845904523536028752390026306410273E1”