MagicManICT wrote:xdragonlord18 wrote:it being not as precise is a problem with how its done on computers not a problem with floating points which is simply a number with no fixed amount of digits before or after the decimal so it can represent any degree of precision
I think you're getting some things confused here. "Floating point" doesn't really exist as a term outside of digital computer processing. Otherwise, I think you've got the right idea. Floats were never really intended to be precise, just "accurate enough." For computational accuracy, there are several methods of achieving it, they are just all significantly slower than running the floating point unit (even in factors of powers of ten slower).
The god damn wikipedia on floating point numbers wrote:The term floating point refers to the fact that a number's radix point (decimal point, or, more commonly in computers, binary point) can "float"; that is, it can be placed anywhere relative to the significant digits of the number. This position is indicated as the exponent component, and thus the floating-point representation can be thought of as a kind of scientific notation.
it does technically exist outside of computers its less accurate in java because its 32 bit where as something like a double is 64 bit he could have just used double if accuracy was that important but for a video game grid system being super accurate is really not that important at all also using a double wouldnt have been much slower than using float