Is Mathematica making the print precision rounding judgment more stringent based on whether or not the number is above or below the rounding target? If so, why?

In my real case, I have many numbers on screen with about half of them represented with several zeros, and the other half with nothing after the decimal. That makes no sense to me.

I'm using Mathematica Online if that is relevant.

(*11.2.0 for Linux x86 (64-bit) (September 2, 2017)*)
(*1.43.4 (September 12, 2017)*)

Cloud Print Rounding

Alexey has posted screenshots for Mathematica 8.0.4 and 11.2.0 on Windows, which I include below for comparison. Note the symmetrical rounding without the extra zeros. In my opinion, this is the original, intended, and correct behavior.

Mathematica 8.0.4 Print Rounding on Windows Mathematica 11.2.0 Print Rounding on Windows

  • 1
    $\begingroup$ Here is what I get with Mathematica 8.0.4 on Windows 7 x64: screenshot. $\endgroup$ – Alexey Popkov Sep 30 '17 at 3:56
  • 1
    $\begingroup$ ... and with Mathematica 11.2.0 on Windows 7 x64 the output is the same: screenshot. So the issue is obviously platform-specific. $\endgroup$ – Alexey Popkov Sep 30 '17 at 7:25
  • $\begingroup$ Would you be content with using NumberForm to control the number of digits? $\endgroup$ – murray Sep 30 '17 at 19:47
  • 1
    $\begingroup$ @Chris Here are the screenshots: version 8.0.4, version 11.2.0. $\endgroup$ – Alexey Popkov Oct 19 '17 at 7:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.