Free Republic
Browse · Search
News/Activism
Topics · Post Article

Skip to comments.

Dodd: No one will know until this is actually in place how it works
The Washington Post ^ | June 25, 2010

Posted on 06/25/2010 11:29:39 AM PDT by Southnsoul

click here to read article


Navigation: use the links below to view more comments.
first previous 1-2021-4041-6061-63 last
To: OneWingedShark
It is an inherent precision of floating-point representations using binary arithmetic: but with enough bits for each floating point number, you can go to more and more precision before running into problems, e.g. IIRC, according to IEEE754 64-bit precision allowed floating point decimals from 10308 to 10-308, much better than the range allowed by 32-bit precision.

That being said, you are right, there are some numbers which cannot be represented exactly using floating-opoint arithmetic, including (I think) the square root of two (or was it three?).

I recall working on optimizing an engineering simulation program where we had to turn off compiler options in order to get the answers to come out right: the compiler was taking a group of operands and rearranging the order they were being added in -- with the side effect that some of the smaller numbers were "dropped" as rounding errors. We had to change the code by hand so that it sorted the numbers first, and then began adding from smallest to largest...

Cheers!

61 posted on 06/25/2010 2:36:36 PM PDT by grey_whiskers (The opinions are solely those of the author and are subject to change without notice.)
[ Post Reply | Private Reply | To 56 | View Replies]

To: Don Corleone

I’ll take “D:” Adolf the above.


62 posted on 06/25/2010 4:24:11 PM PDT by OneWingedShark (Q: Why am I here? A: To do Justly, to love mercy, and to walk humbly with my God.)
[ Post Reply | Private Reply | To 60 | View Replies]

To: Southnsoul

America’s Directive 10-289.


63 posted on 06/25/2010 5:02:33 PM PDT by RWB Patriot ("My ability is a value that must be purchased and I don't recognize anyone's need as a claim on me.")
[ Post Reply | Private Reply | To 1 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-4041-6061-63 last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
News/Activism
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson