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

29 lines
1.2 KiB
Plaintext

'''LONG''' defines a variable as a 4 byte number type definition for larger [[INTEGER]] values.
{{PageSyntax}}
:: DIM ''variable'' AS LONG
* Qbasic LONG Integer values can be from -2147483648 to 2147483647.
* '''QB64''' [[_UNSIGNED]] Long Integer values range from 0 to 4294967295.
* '''QB64''' [[_UNSIGNED]] [[_INTEGER64]] values can range from 0 to 18446744073709551615.
* Decimal point values received will be rounded to the nearest whole number.
* The LONG variable type suffix is &amp; or ~&amp; for [[_UNSIGNED]]. Suffix can also be placed after a literal or hexadecimal numerical value.
* [[_INTEGER64]] uses the '''&amp;&amp;''' or '''~&amp;&amp;''' [[_UNSIGNED]] suffix.
* Values can be converted to 4 byte [[ASCII]] string values using [[MKL$]] and back with [[CVL]].
* '''When a variable has not been assigned or has no type suffix, the value defaults to [[SINGLE]].'''
* '''Warning: Qbasic keyword names cannot be used as numerical variable names with or without the type suffix!'''
''See also:''
* [[DIM]], [[DEFLNG]]
* [[LEN]], [[CLNG]]
* [[MKL$]], [[CVL]]
* [[INTEGER]], [[_INTEGER64]]
* [[SINGLE]], [[DOUBLE]]
* [[_UNSIGNED]]
* [[Variable Types]]
{{PageNavigation}}