| Symbolic Math Toolbox™ | ![]() |
digits
digits(d)
d = digits
digits specifies the number of significant decimal digits that Maple® software uses to do variable precision arithmetic (VPA). The default value is 32 digits.
digits(d) sets the current VPA accuracy to d digits.
d = digits returns the current VPA accuracy.
If
z = 1.0e-16 x = 1.0e+2 digits(14)
then
y = vpa(x*z+1)
uses 14-digit decimal arithmetic and returns
y = 1.0000000000000
Whereas
digits(15) y = vpa(x*z+1)
used 15-digit decimal arithmetic and returns
y = 1.00000000000001
![]() | diff | dirac | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |