Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: √ ∞ ≠ ≤ ≥ ≈ ⇒ ∈ Δ θ ∴ ∑ ∫ π -

Login

Username

Password

Not registered yet?

#1 2007-03-02 11:04:14

John E. Franklin
Star Member

Offline

Significant Digits java-thingy

MIF, if you try this data in your thingy, it gets two decimal points.
http://www.mathsisfun.com/rounding-numbers.html
3.1415926535897932384626433832
Significant Digits: 18


igloo myrtilles fourmis
 

#2 2007-03-28 19:33:54

justlookingforthemoment
Moderator
Award: Wink Sherlock

Offline

Re: Significant Digits java-thingy

It's a bit old, but no one has replied ...

It does that for me too, John. Also for 20, 22, and 26 decimal places with pi.

 

#3 2007-03-28 20:09:35

MathsIsFun
Administrator

Offline

Re: Significant Digits java-thingy

Ooohhh, thats crazy.

Sorry, John, I must have missed your original post.

I will investigate.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman
 

#4 2007-03-29 14:51:52

MathsIsFun
Administrator

Offline

Re: Significant Digits java-thingy

Investigation revealed that internally it was converting a long list of digits to scientific notation which then played havoc with the rest of the routine.

I came up with a new method which hopefully works. It does for me.

Please try heaps of random variations and tell me how it goes smile


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman
 

Board footer

Powered by FluxBB