Difference between revisions of "MKL$"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>Clippy
m
Line 8: Line 8:
 
* The long integer number value is converted to four ASCII characters. To prove this try: PRINT MKL$(12345678).
 
* The long integer number value is converted to four ASCII characters. To prove this try: PRINT MKL$(12345678).
 
* The numerical data usually uses less bytes than printing the LONG number to a file.
 
* The numerical data usually uses less bytes than printing the LONG number to a file.
 +
* [[LONG]] Integer values can be from -2147483648 to 2147483647.
 
* A 10 digit long number can save 6 bytes using MKL$.  
 
* A 10 digit long number can save 6 bytes using MKL$.  
 
* [[CVL]] can convert the value back to a [[LONG]] numerical value.
 
* [[CVL]] can convert the value back to a [[LONG]] numerical value.

Revision as of 19:15, 8 November 2011

The MKL$ function converts a numerical value to a LONG value represented as a 4 byte ASCII character STRING.


Syntax

4byte_string$ = MKL$(long_value&)


  • The long integer number value is converted to four ASCII characters. To prove this try: PRINT MKL$(12345678).
  • The numerical data usually uses less bytes than printing the LONG number to a file.
  • LONG Integer values can be from -2147483648 to 2147483647.
  • A 10 digit long number can save 6 bytes using MKL$.
  • CVL can convert the value back to a LONG numerical value.


See examples:


See also:



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page