Wolfram Computation Meets Knowledge

How do I display more digits of numeric results?

Standard decimal numbers in the Wolfram Language are internally represented with machine precision*:

In[1]:= $MachinePrecision
Out[1]= 15.9546

The InputForm of a given number displays all available digits:

In[2]:= InputForm[200./7]
Out[2]//InputForm= 28.57142857142857 

Yet by default, only six digits of such machine-precision numbers are shown:

In[3]:= 200./7
Out[3]= 28.5714 

More digits can be displayed either for an individual number or all machine-precision numbers.

Individual Number

NumberForm displays the desired number of digits of a particular number:

In[4]:= NumberForm[200./7, 12]
Out[4]//NumberForm= 28.5714285714 

NumberForm cannot return more digits than the number has:

In[5]:= NumberForm[200./7, 24]
Out[5]//NumberForm= 28.57142857142857 

All Numbers

  1. Navigate to the menu item Edit ▶ Preferences on Windows or Mathematica ▶ Preferences on Mac.
  2. Select the tab Appearance ▶ Numbers ▶ Formatting.
  3. In the line “Number of digits displayed in output”, set the preferred precision.


* It is of noninteger value since the precision of a number is defined in terms of the logarithm of the uncertainty in the corresponding exact value.

该文档是否有帮助?

任何建议?

非常感谢您的反馈!

提交

联系支持团队

从账单到产品激活,以及任何技术相关内容,无论您遇到任何问题,我们都在此为您提供帮助。

1-800-WOLFRAM (+1-217-398-0700 美国境外用户)

客服支持

周一至周五
8am–5pm 美国中部时区

  • 产品注册或激活
  • 预售信息和订单
  • 安装帮助和首次启动

高级技术支持 (面向特定用户)

周一至周四
8am–7pm 美国中部时区

周五
8:30–10am & 11am–5pm 美国中部时区

  • 优先技术支持
  • Wolfram 专家助理专员
  • Wolfram 语言编程帮助
  • 高级安装支持