Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

A Problem with Mathematica's Precision

  1. Oct 2, 2008 #1
    Hi all,

    Perhaps it is just me that is bugged by this, but I can never get the N function to work in Mathematica.

    For example, try doing:

    N[6.50889261991, 2]

    and you get:


    Which clearly isn't to 2 significant figures or decimal places...

    Does anyone know if there is something I am doing wrong with N?

  2. jcsd
  3. Oct 7, 2008 #2


    Staff: Mentor

    You can use 6.50889261991`2 to get it to 2 significant figures. Or alternatively you can use 6.5`2

    I don't know why N doesn't degrade the precision of the input, but I get the same result.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: A Problem with Mathematica's Precision
  1. Mathematica problem (Replies: 4)

  2. Mathematica problem (Replies: 2)