Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2007-03-01 12:04:14

John E. Franklin
Member
Registered: 2005-08-29
Posts: 3,588

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

Offline

#2 2007-03-27 21:33:54

justlookingforthemoment
Moderator
Registered: 2005-05-26
Posts: 2,161

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.

Offline

#3 2007-03-27 22:09:35

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

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

Offline

#4 2007-03-28 16:51:52

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,713

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

Offline

Board footer

Powered by FluxBB