Built-In Functions Flashcards

1
Q

What is a Random Number Generator?

A

Given a minimum and maximum range, it will produce a new number when the function is called.

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

What does Rounding do?

A

When using float/decimal numbers, you can round a value to a certain number of decimal places using the ‘round’ function.

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

What does Truncation do?

A

Truncation works on float/double numbers to remove values after a certain decimal place.
It is used mainly in formatting when high precision is needed for operations but not necessary for displaying the value.

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