@nataliapc/mcp-openmsx
Version:
Model context protocol server for openMSX automation and control
37 lines (21 loc) • 559 B
Markdown
# CSNG()
## Effect
Converts a variable to a single precision number. Single precision numbers have an accuracy of 6 digits.
## Syntax
`CSNG (<Expression>)`
## Parameter
`<Expression>` can be a value, a numeric variable or an mathematical expression.
## Example
```basic
10 PRINT "7 divided by 6 is ";CSNG(7/6)
20 PRINT "10 divided by 11 ";CSNG(10/11)
RUN
7 divided by 6 is 1.16667
10 divided by 11 is .909091
```
## Related to
`CDBL`, `CINT`
## Compatibility
MSX-BASIC 1.0 or higher
## Source
Retrieved from "https://www.msx.org/wiki/CSNG()"