Math Methods Flashcards
1
Q
ceil(x)
A
Returns x, rounded upwards to the nearest integer
2
Q
floor(x)
A
Returns x, rounded downwards to the nearest integer
3
Q
random()
A
Returns a random number between 0 and 1
4
Q
round(x)
A
Rounds x to the nearest integer