Permalink
Browse files

Added SQR to function list

  • Loading branch information...
1 parent 7541a07 commit b19fdb58d70d07cd899f5af6bb45ae57b8268c15 @M4v3R committed Apr 15, 2012
Showing with 12 additions and 1 deletion.
  1. +12 −1 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.

0 comments on commit b19fdb5

Please sign in to comment.