We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nataliapc/mcp-openmsx'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
SGN().md•551 B
# SGN()
## Effect
Returns the sign (positive of negative) of a variable.
## Syntax
`SGN (<Expression>)`
## Parameter
`<Expression>` can be a value, a numeric variable or an mathematical expression.
## Example
```basic
10 PRINT "The sign of -7 is ";SGN(-7)
20 PRINT "The sign of 0 is ";SGN(0)
30 PRINT "The sign of 7 is ";SGN(7)
RUN
The sign of -7 is -1
The sign of 0 is 0
The sign of 7 is 1
```
## Related to
`ABS()`, `FIX()`, `INT()`
## Compatibility
MSX-BASIC 1.0 or higher
## Source
Retrieved from "https://www.msx.org/wiki/SGN()"