N
N(expr)
gives the numerical value of
expr
.
N(expr, precision)
evaluates
expr
numerically with a precision ofprec
digits.
Note: the upper case identifier N
is different from the lower case identifier n
.
Examples
>> N(Pi)3.141592653589793
>> N(Pi, 50)3.1415926535897932384626433832795028841971693993751
>> N(1/7)0.14285714285714285
>> N(1/7, 5)1.4285714285714285714e-1
Related terms
Implementation status
- ✅ - full supported