Math Methods Flashcards

1
Q

ceil(x)

A

Returns x, rounded upwards to the nearest integer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

floor(x)

A

Returns x, rounded downwards to the nearest integer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

random()

A

Returns a random number between 0 and 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

round(x)

A

Rounds x to the nearest integer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly