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
No edit summary |
No edit summary |
||
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]]. |
Revision as of 02:07, 24 January 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 (QB64 conversion function)
- MKI$, CVI, INTEGER
- MKL$, CVL, LONG
- MKS$, CVS, SINGLE
- MKD$, CVD, DOUBLE
- MKSMBF$, CVSMBF (Microsoft Binary Format)
- MKDMBF$, CVDMBF (Microsoft Binary Format)
- CURRENCY