News for hackers. Stuff that matters.
Re:There Are Only Four Billion Floats – So Test Them All by zvrba on Tuesday January 28, 2014 @02:51AM (#7135941)
In engineering applications, it's perfectly sensible to use float for world modelling, which give you precision of about 1 in 10 million. Then you can use double for intermediate results and lose less precision in a long calculation, producing a more accurate result (rounded to float) in the end.

Also, if the dynamic range of your data allows it [and for physical application it usually does], you can first rescale it to [0,1] in order to further increase precision. [It's the interval where floats are most dense.]

Having worked for a few years now in computational geometry, i'm more and more convinced that "float by default" is the way to go. Doubles should be used for intermediate computations.

Re:There Are Only Four Billion Floats – So Test Them All by sampo on Tuesday January 28, 2014 @11:22AM (#7137961)
> rescale it to [0,1] in order to further increase precision. [It's the interval where floats are most dense.]

Who not to scale to [0,0.5], where they are even more dense? ;-)

Re:There Are Only Four Billion Floats – So Test Them All by brucedawson on Tuesday January 28, 2014 @05:35PM (#7140293)
Amateur. Scale to [0,FLT_MIN*2]. There they are truly most dense, and the density is uniform across the entire range. It's almost like using 24-bit integers.