FLOAT: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
* [[_FLOAT]] variables can also use the ## variable name type suffix. | * [[_FLOAT]] variables can also use the ## variable name type suffix. | ||
* Values returned may be expressed using exponential or [[scientific notation]] using '''E''' for SINGLE or '''D''' for DOUBLE precision. | * Values returned may be expressed using exponential or [[scientific notation]] using '''E''' for SINGLE or '''D''' for DOUBLE precision. | ||
* Floating decimal point numerical values cannot be [[_UNSIGNED]]. | * Floating decimal point numerical values cannot be [[_UNSIGNED]]. | ||
* Values can be converted to 32 byte [[ASCII]] strings using [[_MK$]] and back with [[_CV]]. | * Values can be converted to 32 byte [[ASCII]] strings using [[_MK$]] and back with [[_CV]]. |
Latest revision as of 13:57, 20 November 2024
_FLOAT numerical values offer the maximum floating-point decimal precision available using QB64.
Syntax
Description
- 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.
- _FLOAT variables can also use the ## variable name type suffix.
- Values returned may be expressed using exponential or scientific notation using E for SINGLE or D for DOUBLE precision.
- Floating decimal point numerical values cannot be _UNSIGNED.
- Values can be converted to 32 byte ASCII strings using _MK$ and back with _CV.
- When a variable has not been assigned or has no type suffix, the value defaults to SINGLE.
See also