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.
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.