MK$: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
m (Removed protection from "MK$") |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:_MK$ | {{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: | ||
{{ | {{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]] | * [[_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]] | * [[MKSMBF$]], [[CVSMBF]] | ||
* [[MKDMBF$]], [[CVDMBF]] | * [[MKDMBF$]], [[CVDMBF]] | ||
* [[PDS(7.1) Procedures#CURRENCY|CURRENCY]] | * [[PDS(7.1) Procedures#CURRENCY|CURRENCY]] | ||
{{PageNavigation | {{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
- numericalType is any QB64 numerical type: INTEGER, LONG, SINGLE, DOUBLE, _INTEGER64, _BYTE or _BIT.
- Whole integer values can be signed or _UNSIGNED.
- numericalValue must match the numericalType used.
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
- _CV
- MKI$, CVI, INTEGER
- MKL$, CVL, LONG
- MKS$, CVS, SINGLE
- MKD$, CVD, DOUBLE
- MKSMBF$, CVSMBF
- MKDMBF$, CVDMBF
- CURRENCY