Jump to navigation Jump to search
Revision as of 21:53, 17 October 2009 by (Created page with ''''_FLOAT''' numerical values offer the maximum floating decimal precision available in '''QB64'''. _FLOAT name## * '''QB64''' always allocates 32 bytes to store this…')
_FLOAT numerical values offer the maximum floating decimal precision available in QB64.
- QB64 always allocates 32 bytes to store this value. It is safe to assume this value is at least as precise as DOUBLE. Under the current implementation it is stored in a 10-byte floating point variable.
- According to http://babbage.cs.qc.edu/courses/cs341/IEEE-754references.html this can store a value of up to 1.1897E+4932 as appose to a DOUBLE which 'only' goes up to 1.7976E+308. I know I'd be using _FLOAT type variables if I was simulating a solar system with tiny ships flying around because DOUBLE wouldn't give enough precision to move the ships to the nearest centimeter!