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 для международных звонков)

Служба поддержки

Понедельник-пятница
с 08:00 до 17:00 по центральному времени США

  • Регистрация или активация продукта
  • Предпродажная информация и заказ
  • Помощь в установке и первом запуске

Расширенная техническая поддержка (для правомочных клиентов)

Понедельник-четверг
с 08:00 до 19:00 по центральному времени США

Пятница
с 08:30 до 10:00 и с 11:00 до 17:00 по центральному времени США

  • Приоритетная техническая поддержка
  • Поддержка по продуктам от экспертов Wolfram
  • Помощь специалистов по программированию на Wolfram Language
  • Расширенная поддержка установки