Message Boards Message Boards

0
|
7706 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Precision in ScientificForm

Posted 4 years ago

The following code asks to display the number 1.23001 with 4 digits precision:

ScientificForm[1.23001, 4]
(* "1.23" *)

In my opinion, it is displayed with 3 digits precision. I would prefer it display 1.230 to make the precision apparent. Am I confused?

POSTED BY: David Keith
2 Replies

There are several ways of getting that extra digit. Perhaps you could try

ScientificForm[1.23001`4, 4]
POSTED BY: Marvin Ray Burns
Posted 4 years ago

Thanks, Marvin. That works.

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

Group Abstract Group Abstract