BASIC-80 Functions¶
Intrinsic functions provided by BASIC-80. These functions may be called from any program without further definition.
By Category¶
Mathematical Functions¶
- ABS - Absolute value
- ATN - Arctangent
- COS - Cosine
- EXP - Exponential
- FIX - Truncate
- INT - Integer part
- LOG - Natural logarithm
- RND - Random number
- SGN - Sign
- SIN - Sine
- SQR - Square root
- TAN - Tangent
String Functions¶
- ASC - Character to ASCII code
- CHR$ - ASCII code to character
- HEX$ - Number to hexadecimal
- INSTR - Find substring
- LEFT$ - Left substring
- LEN - String length
- MID$ - Middle substring
- OCT$ - Number to octal
- RIGHT$ - Right substring
- SPACE$ - Returns a string of spaces
- STR$ - Number to string
- STRING$ - Repeated character
- VAL - String to number
Output Formatting Functions¶
Type Conversion Functions¶
- CDBL - To double precision
- CINT - To integer
- CSNG - To single precision
- CVD, CVI, CVS - String to number
- MKD, MKI, MKS$ - Number to string
File I/O Functions¶
- EOF - End of file
- INPUT$ - Read characters
- LOC - File position
- LOF - Length of file
- LPOS - Printer position
- POS - Cursor position
System Functions¶
- FRE - Free memory
- INKEY$ - Read keyboard
- INP - Port input
- PEEK - Read memory location
- USR - Machine language call
- VARPTR - Variable address
Alphabetical Quick Reference¶
ABS | ASC | ATN | CDBL | CHR](chr_dollar.md) | [CINT](cint.md) | [COS](cos.md) | [CSNG](csng.md) | [CVD/CVI/CVS](cvi-cvs-cvd.md) | [EOF](eof.md) | [EXP](exp.md) | [FIX](fix.md) | [FRE](fre.md) | [HEX | INKEY](inkey_dollar.md) | [INP](inp.md) | [INPUT | INSTR | INT | LEFT](left_dollar.md) | [LEN](len.md) | [LOC](loc.md) | [LOF](lof.md) | [LOG](log.md) | [LPOS](lpos.md) | [MID | MKD/MKI/MKS](mki_dollar-mks_dollar-mkd_dollar.md) | [OCT | PEEK | POS | RIGHT](right_dollar.md) | [RND](rnd.md) | [SGN](sgn.md) | [SIN](sin.md) | [SPACE | SPC | SQR | STR](str_dollar.md) | [STRING | TAB | TAN | USR | VAL | VARPTR
See Also¶
- Statements - BASIC-80 statements and commands
- Error Codes - Error messages and codes
- Examples - Example programs