Integer part
In mathematics, the floor (also known as the integer part) of a number n is the biggest integer number that is smaller than n.
The ceiling of a number n is the smallest integer number that is greater than n.
Notation:
The floor (integer part) of a number n: [n] = ⌊n⌋
The ceiling: ⌈n⌉
Examples:
Fractional part
In mathematics, any real number can be written as n + r, where n is an integer, and r (the fractional part) is a nonnegative real number smaller than 1.
The fractional part of a number n can be written as the difference between n and its integer part (floor):
Examples: