Group Abstract Group Abstract

Message Boards Message Boards

0
|
1.5K Views
|
5 Replies
|
4 Total Likes
View groups...
Share
Share this post:

Display 16 digits after the decimal place?

5 Replies
Posted 6 months ago

There is an option, PrintPrecision, that sets how many significant digits are shown in notebook output. Default 6. To change it globally one can use Preferences from the Edit menu:

enter image description here

Or in Option Inspector:

enter image description here

The option can also be set for individual instances of functions such as InputField:

InputField[0.123456789, BaseStyle -> {PrintPrecision -> 10}]
POSTED BY: Hans Milton
Posted 7 months ago
POSTED BY: Eric Rimbey

From the documentation on N[expr]:

Unless numbers in expr are exact, or of sufficiently high precision, N[expr,n] may not be able to give results with n-digit precision.

So - instead of writing Sin[1.002547] an exact argument should be given:

N[Sin[1002547/1000000],50]
(*  Out:    0.84284440389545029858668699605171893416627484058817  *)
POSTED BY: Henrik Schachner

Thank you very much Hans and the two others who replied kindly to my question. Hans : It is exactly what I was looking for. Have a great day and kind regards,

Jean-Michel

Hans : I am so grateful to you. This does solve this issue I've been fighting for months... Best regards,

Jean-Michel

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard