Difference between revisions of "MKL$"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
imported>Clippy
Line 7: Line 7:
  
  
* 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 up 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.
 
* A 10 digit long number can save 6 bytes using MKL$.  
 
* A 10 digit long number can save 6 bytes using MKL$.  

Revision as of 10:35, 11 September 2009

The MKL$ function converts a numerical value to a LONG value represented as a 4 byte string.


Syntax: 4byte_string$ = MKL$(long_value&)


  • The long integer number value is converted up 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.
  • A 10 digit long number can save 6 bytes using MKL$.
  • CVL can convert the value back to a LONG numerical value.


See also: MKI$, MKS$, MKD$, Bitmaps


Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage