Number Types / Functions Flashcards

1
Q

Quotient

A
  • Keeps the same sign as the first number
  • Returns with the quotient of two numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Remainder

A
  • Keeps the same sign as the first number
  • Finds the remainder of two numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Modulo

A
  • Keeps the same sign as the second number
  • Uses the formula a - (b * floor(a / b))
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Absolute Value

A

Returns the absolute value of a number

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

Max

A

Returns the largest value of a list of numbers

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

Min

A

Returns the smallest number of a list of numbers

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

Round

A

Returns the integer closest to something

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

Floor

A

Returns the largest integer that is no more than a number.

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

Ceiling

A

Returns the smallest integer that is larger than a number.

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

=

A
  • Boolean
  • Shows if two numbers are equal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

<, >, <=, >=

A
  • Boolean
  • Compares two different numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

+, -

A

Adds or subtracts numbers

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

sqrt

A

Shows the square root of a number

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

expt

A

Uses an exponent

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

num

A
  • shortened version of number
  • Boolean
  • (= num 0) –> #t or #f
How well did you know this?
1
Not at all
2
3
4
5
Perfectly