MK$: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:_MK$}}{{DISPLAYTITLE:}} The _MK$ function can convert any numerical type into an ASCII STRING value that can be converted back using _CV. {{PageSyntax}} :{{Parameter|string_value$}} = _MK$({{Parameter|numericalType}}, {{Parameter|numericalValue}}) {{Parameters}} * {{Parameter|numericalType}} is any QB64 numerical type: INTEGER, LONG, SINGLE, DOUBLE, _INTEGER64, _BYTE or _BIT. * Whole integer values can be...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:_MK$}}{{DISPLAYTITLE:}}
{{DISPLAYTITLE:_MK$}}
The [[_MK$]] function can convert any numerical type into an [[ASCII]] [[STRING]] value that can be converted back using [[_CV]].
The [[_MK$]] function can convert any numerical type into an [[ASCII]] [[STRING]] value that can be converted back using [[_CV]].


Line 7: Line 7:




{{Parameters}}
{{PageParameters}}
* {{Parameter|numericalType}} is any QB64 numerical type: [[INTEGER]], [[LONG]], [[SINGLE]], [[DOUBLE]], [[_INTEGER64]], [[_BYTE]] or [[_BIT]].
* {{Parameter|numericalType}} is any QB64 numerical type: [[INTEGER]], [[LONG]], [[SINGLE]], [[DOUBLE]], [[_INTEGER64]], [[_BYTE]] or [[_BIT]].
* Whole integer values can be signed or [[_UNSIGNED]].
* Whole integer values can be signed or [[_UNSIGNED]].
Line 14: Line 14:


{{PageDescription}}
{{PageDescription}}
* Supports converting any QBasic or '''QB64''' numerical value into a string value.  
* Supports converting any QBasic or '''QB64''' numerical value into a string value.
* Some resulting [[ASCII]] string characters might not be able to be printed to the screen.
* Some resulting [[ASCII]] string characters might not be able to be printed to the screen.




{{PageSeeAlso}}
{{PageSeeAlso}}
* [[_CV]] {{text|(QB64 conversion function)}}
* [[_CV]]
* [[MKI$]], [[CVI]], [[INTEGER]]
* [[MKI$]], [[CVI]], [[INTEGER]]
* [[MKL$]], [[CVL]], [[LONG]]
* [[MKL$]], [[CVL]], [[LONG]]
* [[MKS$]], [[CVS]], [[SINGLE]]
* [[MKS$]], [[CVS]], [[SINGLE]]
* [[MKD$]], [[CVD]], [[DOUBLE]]
* [[MKD$]], [[CVD]], [[DOUBLE]]
* [[MKSMBF$]], [[CVSMBF]] {{text|(Microsoft Binary Format)}}
* [[MKSMBF$]], [[CVSMBF]]
* [[MKDMBF$]], [[CVDMBF]] {{text|(Microsoft Binary Format)}}
* [[MKDMBF$]], [[CVDMBF]]
* [[PDS(7.1) Procedures#CURRENCY|CURRENCY]]
* [[PDS(7.1) Procedures#CURRENCY|CURRENCY]]




{{PageNavigation}}{{DISPLAYTITLE:}}
{{PageNavigation}}

Latest revision as of 21:18, 2 February 2023

The _MK$ function can convert any numerical type into an ASCII STRING value that can be converted back using _CV.


Syntax

string_value$ = _MK$(numericalType, numericalValue)


Parameters


Description

  • Supports converting any QBasic or QB64 numerical value into a string value.
  • Some resulting ASCII string characters might not be able to be printed to the screen.


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link