Number Types / Functions Flashcards
1
Q
Quotient
A
- Keeps the same sign as the first number
- Returns with the quotient of two numbers
2
Q
Remainder
A
- Keeps the same sign as the first number
- Finds the remainder of two numbers
3
Q
Modulo
A
- Keeps the same sign as the second number
- Uses the formula a - (b * floor(a / b))
4
Q
Absolute Value
A
Returns the absolute value of a number
5
Q
Max
A
Returns the largest value of a list of numbers
6
Q
Min
A
Returns the smallest number of a list of numbers
7
Q
Round
A
Returns the integer closest to something
8
Q
Floor
A
Returns the largest integer that is no more than a number.
9
Q
Ceiling
A
Returns the smallest integer that is larger than a number.
10
Q
=
A
- Boolean
- Shows if two numbers are equal
11
Q
<, >, <=, >=
A
- Boolean
- Compares two different numbers
12
Q
+, -
A
Adds or subtracts numbers
13
Q
sqrt
A
Shows the square root of a number
14
Q
expt
A
Uses an exponent
15
Q
num
A
- shortened version of number
- Boolean
- (= num 0) –> #t or #f