@nataliapc/mcp-openmsx
Version:
Model context protocol server for openMSX automation and control
37 lines (21 loc) • 671 B
Markdown
Returns a string with the binary representation of a value.
`BIN$(<Value>)`
`<Value>` must be an expression, a numeric variable or a value between -32768 and 65535. A single or double precision value can be used but digits after the decimal point will be ignored.
```basic
10 PRINT "The binary representation of 8 is ";BIN$(8)
20 PRINT "The binary representation of 127 is ";BIN$(127)
RUN
The binary representation of 8 is 1000
The binary representation of 127 is 11011
```
`HEX$`, `OCT$`
MSX-BASIC 1.0 or higher
Retrieved from "https://www.msx.org/wiki/BIN$()"