Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement MKn$, CVn serialization functions #84

Open
ngeor opened this issue Mar 24, 2021 · 0 comments
Open

Implement MKn$, CVn serialization functions #84

ngeor opened this issue Mar 24, 2021 · 0 comments

Comments

@ngeor
Copy link
Owner

ngeor commented Mar 24, 2021

MKI$, MKL$, MKSS$ and, MKD$ convert numbers to numeric strings that can be stored in FIELD statement string variables. CVI, CVL, CVS, and CVD convert those strings back to numbers.

MKI$(integer-expression%)
MKL$(long-integer-expression&)
MKS$(single-precision-expression!)
MKD$(double-precision-expression#)
CVI(2-byte-numeric-string)
CVL(4-byte-numeric-string)
CVS(4-byte-numeric-string)
CVD(8-byte-numeric-string)

Hint:

PRINT MKI$(33 + 256 * 34)

prints !" (33 is the ascii code of ! and 34 is the ascii code of ")

@ngeor ngeor changed the title Implement MK/CV serialization functions Implement MKn$, CVn serialization functions Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant