Command: digits n
Function: digits (n)
Function: n = digits ()
Function: oldn = digits (n)

Set/get number of digits used in variable precision arith.

Examples:

n_orig = digits(7);
vpa('pi')
  ⇒ (sym) 3.141593

digits(42)
vpa('pi')
  ⇒ (sym) 3.14159265358979323846264338327950288419717

digits(n_orig)      % reset digits to saved value

See also: sym, vpa, vpasolve.

Package: symbolic