Skip to content

Commit bb30bfb

Browse files
Update README.md
1 parent eadae0e commit bb30bfb

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

Main/README.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,7 @@
22

33
Contains the basic functionality for EZCode (automatically included in build).
44
- `bool`, `str`, `float`, `int`, `char`, `expressions`, `var`, and `list` classes
5-
- `print`, `input`, `runcode`, `clear`, `regexmatch`, `environment`, and `istype` methods
6-
- basic math functions including:
7-
- `add` add numbers
8-
- `subtract` subtract numbers
9-
- `multiply` multiply numbers
10-
- `divide` divide numbers
11-
- `pi` pi constant
12-
- `clamp` clamp number between 2 numbers
13-
- `avg` average of numbers
14-
- `operate` everything in MathF from C# class.
5+
- `print`, `input`, `runcode`, `clear`, `regexmatch`, `environment`, and `istype` methods. Basic global math functions
156

167
```
178
bool b new : True
@@ -26,14 +17,16 @@ print Hello World! // prints to console
2617
input // waits for the user to input
2718
clear // clears the console
2819
runcode undefined val => any // this runs any ezcode
29-
regexmatch : text, \/hello|\/world
30-
istype : #varname /*add the # before variable name*/, str
20+
regex-match : text, \/hello|\/world
21+
is-type : #varname /*add the # before variable name*/, str
3122
add 5, 10
3223
subtract 5, 10
3324
multiply 5, 10
3425
divide 5, 10
3526
pi // returns pi constant
3627
clamp 50, 10, 100 // clamps number '50' between '10' and '100'
28+
random 0, 100
29+
round-to-int 0.5684
3730
avg 10, 20, 30, 40, 50, 100000 // returns the average of the numbers
3831
operate sin, 50 // returns the sin of 50
3932
str user new => environment : username

0 commit comments

Comments
 (0)