1.1 KiB
1.1 KiB
Math functions
@parent blocks/language
The math library includes math related functions that you can use with Numbers.
abs
math ->
abs (x : Number) returns Number
returns the absolute value of input parameter x
max
math ->
max (x : Number, y : Number) returns Number
returns the larger of two input numbers (x
and y
)
min
math ->
min (x : Number, y : Number) returns Number
returns the smaller of two input numbers (x
and y
)
random
math ->
random (limit : Number) returns Number
returns a random Number between 0 and the parameter limit