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.
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.
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.
4
Q
A