1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 08:35:52 +00:00
QB64-PE/internal/help/_FLOAT.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

28 lines
1.2 KiB
Plaintext

'''_FLOAT''' numerical values offer the maximum floating-point decimal precision available using '''QB64'''.
{{PageSyntax}}
::[[DIM]] {{Parameter|variable}} AS _FLOAT
{{PageDescription}}
* '''QB64''' always allocates 32 bytes to store this value.
* It is safe to assume this value is at least as precise as {{KW|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.
* According to [http://babbage.cs.qc.edu/courses/cs341/IEEE-754references.html IEEE-754] this can store a value of up to 1.1897E+4932 compared to a DOUBLE which 'only' goes up to 1.7976E+308.
* Floating decimal point numerical values cannot be {{KW|_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]].'''
{{PageSeeAlso}}
* [[DOUBLE]], [[SINGLE]]
* [[_MK$]], [[_CV]]
* [[_DEFINE]], [[DIM]]
* [[PDS(7.1) Procedures#CURRENCY|CURRENCY]]
* [[Variable Types]]
{{PageNavigation}}