Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added SQR to function list

  • Loading branch information...
commit b19fdb58d70d07cd899f5af6bb45ae57b8268c15 1 parent 7541a07
Maciej Trębacz authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 README.md
13 README.md
View
@@ -12,7 +12,7 @@ Compiler structure and engine is heavily inspired by [Let's Build a Compiler, by
* Control structures: IF, LOOP
* Variables (both integer and string)
* Statements: CLS, LOCATE, PRINT, COLOR, KEY, INPUT, POKE, GOTO, RND
-* Functions: STR, CHR, VAL, PEEK
+* Functions: STR, CHR, VAL, PEEK, SQR
## How the language looks like
@@ -239,6 +239,17 @@ To update the seed randomly, use user's keyboard input - ask for something using
These statements update the generator seed by multiplying it with amount of time that has passed before a keystroke, which should be random enough.
Credit: Linear congruentrial generator used by this statement is coded by [Entroper](https://github.com/Entroper/DCPU-16-PRNGs).
+### SQR
+
+Usage:
+
+```
+DIM Result
+Result = SQR(expression)
+```
+
+Computes square root of _expression_.
+
### END
Program MUST end with an ```END``` statement.
Please sign in to comment.
Something went wrong with that request. Please try again.