@nataliapc/mcp-openmsx
Version:
Model context protocol server for openMSX automation and control
41 lines (23 loc) • 880 B
Markdown
Defines a variable or a range of variables as double precision.
As an alternative, a single variable can be declared as double precision by appending the `
`DEFDBL <StartVariable>-<EndVariable>,<StartVariable>-<EndVariable>...`
_Note: Parameters can not end with a comma or hyphen alone._
`<StartVariable>` and `<EndVariable>` are letters put in alphabetic order. If `<EndVariable>` is not specified, all the variables beginning with the specified letter will be defined as double precision.
```basic
10 DEFDBL A-Z
20 A=7/6
30 PRINT "7 divided by 6 (in double precision) is ";A
RUN
7 divided by 6 (in double precision) is 1.1666666666667
```
`DEFINT`, `DEFSNG`, `DEFSTR`
MSX-BASIC 1.0 or higher
Retrieved from "https://www.msx.org/wiki/DEFDBL"