22
33Contains 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```
178bool b new : True
@@ -26,14 +17,16 @@ print Hello World! // prints to console
2617input // waits for the user to input
2718clear // clears the console
2819runcode 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
3122add 5, 10
3223subtract 5, 10
3324multiply 5, 10
3425divide 5, 10
3526pi // returns pi constant
3627clamp 50, 10, 100 // clamps number '50' between '10' and '100'
28+ random 0, 100
29+ round-to-int 0.5684
3730avg 10, 20, 30, 40, 50, 100000 // returns the average of the numbers
3831operate sin, 50 // returns the sin of 50
3932str user new => environment : username
0 commit comments