-
Notifications
You must be signed in to change notification settings - Fork 0
Built in functions
These are all the built-in functions in Kode. These names cannot be assigned to variables, as they are reserved.
Prints its argument to the console.
Converts an argument (int, float, bool, string) to a string.
Converts an argument (string of int, float, int) to a int.
If argument is a float, the resulting int will be rounded down:
toInt(5.7)
returns 5
.
Converts an argument (string of float, int, float) to a float.
Converts a string to uppercase. yell("I love Kode")
returns "I LOVE KODE"
Converts a string to lowercase. whisper("I love Kode")
returns "i love kode"
Returns the variable's type.
Returns the length of the argument (array, string). len([1,2,3])
returns 3
, len("hello")
returns 5
.
Returns a new array consisting of the original array with the element added at the end of it. Does not modify the original array
Returns a new array consisting of the original array from which the element at the index is removed. Does not modify the original array
Returns a random float between 0 (included) and 1 (excluded)
Returns the float rounded to the nearest integer number.
Returns the square root of a number.