About floating point
Posted 03 April 2012 - 05:53 PM
Can this limitation be overcomed by using a double data type?
Posted 03 April 2012 - 07:14 PM
Double precision does, in fact, double precision. It's good to about 10^-16. Problem is, not all compilers and not all hardware supports double precision natively, so using double can come at cost of performance. Furthermore, graphics hardware runs with single precision floats, so if you are making a game engine, you'd almost always try to make it work without using double. For scientific work, double is often necessary, and is in fact the default precision in Fortran, Matlab, Mathematica, etc.
Posted 04 April 2012 - 04:22 AM
East -10,000 units
West 4000 units
North 8000 units
South -4000 units
In between these bounds, the numbers must be able to have at least 2 decimal in places.
Furthermore the numbers must be multiplied by 16.
I am worried if floating point will be able to take this into consideration
Posted 04 April 2012 - 09:05 AM
Posted 04 April 2012 - 01:59 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users