1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 17:55:52 +00:00
QB64-PE/internal/help/SINGLE.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

26 lines
1 KiB
Plaintext

'''SINGLE''' variables are 4 byte floating decimal point numerical values up to seven digits in length.
{{PageSyntax}}
:: [[DIM]] ''variable'' AS SINGLE
{{PageDescription}}
* Values can range up to 7 digits. Decimal point accuracy depends on whole value places taken.
* Single is the '''default variable type''' assigned to undefined variables without a type suffix.
* Variable suffix type designation is '''!'''. Suffix can also be placed after a literal numerical value by user or automatically by the IDE.
* 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 4 byte [[ASCII]] string values using [[_MKS$]] and back with [[_CVS]].
* '''Warning: Qbasic keyword names cannot be used as numerical variable names with or without the type suffix!'''
{{PageSeeAlso}}
* [[DIM]], [[DEFSNG]]
* [[MKS$]], [[CVS]]
* [[DOUBLE]], [[_FLOAT]]
* [[LEN]]
* [[Variable Types]]
{{PageNavigation}}