BrightChamps Logo
Login
Creative Math Ideas Image
Live Math Learners Count Icon110 Learners

Last updated on July 9th, 2025

Math Whiteboard Illustration

Greatest Integer Function

Professor Greenline Explaining Math Concepts

In mathematics, the function used to round the given number to its nearest integer less than or equal to the number is the greatest integer function. In this article, we will learn about the greatest integer function, its properties, and its graph.

Greatest Integer Function for Thai Students
Professor Greenline from BrightChamps

What is the Greatest Integer Function?

The function used to find the greatest integer less than or equal to the given number is the greatest integer function. It is represented as ⌊x⌋ for the number x. Mathematically, the greatest integer function ⌊x⌋ is represented as: 
⌊x⌋ = n, where n ≤ x < n + 1, where n is an integer. 

 

For example, ⌊5.09⌋ is 5, as 5 ≤ 5.09 < 6.

Professor Greenline from BrightChamps

Difference Between Greatest Integer Function and Smallest Integer Function

To round a real number to an integer in math, we use the greatest and smallest integer functions. In this section, we will learn the differences between the greatest and smallest integer functions.

 

Greatest Integer Function Smallest Integer Function
  • It is represented by ⌊x⌋
  • It is represented by ⌈x⌉
  • For a number x, the greatest integer function is the integer that is less than or equal to x 
  • For the number x, the smallest integer function is the number that is greater than or equal to x
  • The greatest integer function is also known as the floor function
  • The smallest integer function is also known as the ceiling function
  • For example, ⌊3.2⌋ = 3, as 3 ≤ 3.2 < 4
  • For example, ⌈3.2⌉= 4, as 4 ≥ 3.2 > 3
Professor Greenline from BrightChamps

What are the Properties of Greatest Integer Function?

The properties of the greatest integer function are used to simplify and solve problems involving rounding. Some properties of the greatest integer function are:

 

  • ⌊x⌋ = x, if x is an integer 
     
  •  ⌊x + I⌋ = ⌊x⌋ + I, where I is an integer. The greatest integer of x + I is equal to the sum of the greatest integer of x and I
     
  • ⌊x + y⌋ ≥ ⌊x⌋ + ⌊y⌋, for any real numbers x and y, the greatest integer of their sum is greater than or equal to the sum of their individual greatest integers 
     
  • If ⌊f(x)⌋ ≥ I, then f(x) ≥ I
     
  • If ⌊f(x)⌋ ≤ I, then f(x) < I + 1
     
  • ⌊-x⌋ = -⌊x⌋, if X is an integer 
     
  • ⌊-x⌋ = -⌊x⌋-1, if x is not an integer
Professor Greenline from BrightChamps

How to Represent on Number Line?

For a better understanding of the concept of the greatest integer function, we can use a number line for visual representation. In this section, we will learn how to represent the greatest integer function on a number line by following these steps: 

 

  • First, we draw a number line and mark the numbers in equal intervals

 

  • Then we mark the real number

 

  • On the number line, the greatest integer function of a number is the next integer less than or equal to that number, that is, the number to its left. 

 

For example, ⌊4.9⌋

To represent ⌊4.9⌋ on a number line, start drawing the number line and mark the point 4.9. The greatest integer less than or equal to 4.9 is the number left to it, which is 4, the number immediately to the left. So, the ⌊4.9⌋ = 4

Professor Greenline from BrightChamps

What are the Domain and Range of Greatest Integer Function?

The greatest integer function has both a domain and a range. The set of all real numbers (R) is the domain of the greatest integer function. The set of all possible output values is the range, and it is an integer.

 

Value of x f(x) = ⌊X⌋ Explanation
5.8 ⌊5.8⌋ = 5 The greatest integer less than or equal to 5.8 is 5
-3.2 ⌊-3.2⌋ = -4 The greatest integer less than or equal to -3.2 is -4
7 ⌊7⌋ = 7 As 7 is an integer
-6.999 ⌊-6.999⌋ = -7 The greatest integer less than or equal to -6.999 is -7

 

Professor Greenline from BrightChamps

How to Represent Greatest Integer Function on Graph?

The greatest integer function can be represented using a graph, which is a curve with a step structure. So the graph is also known as the step function. For understanding how to plot the function, consider f(x) = ⌊x⌋. Where, if x is an integer, then f(x) = x, and if x is not an integer, then f(x) ≤ x, the integer left to x. 

 

For instance, for any x in the interval [2, 3), f(x) = 2
For any x the interval [-2, -1), F(x) = -2

 

In other words, that is for any integer n, all the numbers in the interval [n, n+1) will have f(x) = n. When x reaches n + 1, the function value will be n + 1, so the graph has a step structure:
A solid dot at the point (n, n) indicates the value included, and the values excluded are indicated using a hollow dot at (n + 1, n)

Professor Greenline from BrightChamps

Real-world Applications of Greatest Integer Function

The greatest integer function is used to convert continuous or fractional values into whole numbers. Here are some applications of the greatest integer function:

 

  • In shipping and packing, the greatest integer function is used to calculate how many full boxes are needed to pack the items. For example, if we need to pack 47 items, and we pack 10 items per box, ⌊47 ÷ 10⌋ = 4, which means 4 boxes are required to pack. 

 

  • In event planning, the greatest integer function helps with seating arrangements, planning food, scheduling and timing, and resource allocation. 

 

  • In logistics, we use the greatest integer function for inventory management.
Max Pointing Out Common Math Mistakes

Common Mistakes and How to Avoid Them in Greatest Integer Function

Here are some common mistakes that students often make when working with the greatest integer function. By understanding these common mistakes, students can master the greatest integer function.

Mistake 1

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Mistaking the greatest integer function for round

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students think that the ⌊x⌋ rounds to the nearest integer, but it is wrong, for example, ⌊3.9⌋ = 4, instead of 3. The process of rounding down the number to the integer that is less than or equal to the number is the greatest integer function.

Mistake 2

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Misapplying properties of addition

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Misapplying the property of addition with the greatest integer function is common among students. As they assume that ⌊X + Y⌋ = ⌊X⌋ + ⌊Y⌋ instead of ⌊X + Y⌋ ≥ ⌊X⌋ + ⌊Y⌋. So, always first find the value of ⌊X⌋ and ⌊Y⌋, then add them.

Mistake 3

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Errors when finding the greatest integer function of a negative number

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

When finding the ⌊-x⌋, students round down as towards zero, for example, ⌊-2.3⌋ = -2, which is wrong. As round down means towards left, as we round the number to the integer which is less than or equal to the number, so, ⌊-2.3⌋ = -3.

Mistake 4

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Confusing the greatest integer function with the smallest integer function

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Confusing the greatest integer function with the smallest integer function is common among students.

 

For example, ⌊1.34⌋ = 2 instead of 1. So always remember that in the greatest integer function, the given number is rounded down to the nearest integer ≤ x. The smallest integer function is rounding up to the nearest integer ≥ x.

Mistake 5

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Error assumption of the domain and range 

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students think that the range of ⌊x⌋ includes nonintegers, for example, ⌊x⌋ = 3.5, which is an error, as ⌊x⌋ can only be an integer. So always remember that the range of ⌊x⌋ is always the set of integers, for example, ⌊4.5⌋ = 4. 

arrow-right
Max from BrightChamps Saying "Hey"

Solved Examples of Greatest Integer Function

Ray, the Character from BrightChamps Explaining Math Concepts
Max, the Girl Character from BrightChamps

Problem 1

Find ⌊3.5⌋?

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

⌊3.5⌋ is 3

Explanation

The greatest integer less than or equal to 3.5 is 3

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 2

Find the value of x in ⌊x + 2⌋ = 4

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

The value of x in ⌊x + 2⌋ = 4 is any real number in  [2, 3). 

Explanation

Given, 

⌊x + 2⌋ = 4 ⇒ 4 ≤  x + 2 < 5

Subtracting each part by 2, 

4 - 2 ≤ x + 2 - 2 < 5 - 2

2 ≤ x <3

So, x ∊ [2, 3)

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 3

Find ⌊-9.23⌋?

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

⌊-9.23⌋ = -10

Explanation

The greatest integer of a negative number is the number less than or equal to the number. The nearest integer less than or equal to -9.23 is -10

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 4

Find ⌊12.0001⌋?

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

⌊12.0001⌋ is 12

Explanation

The nearest integer is less than or equal to 12.0001 is 12, so ⌊12.0001⌋ is 12.

Max from BrightChamps Praising Clear Math Explanations
Max, the Girl Character from BrightChamps

Problem 5

Find the value of x in ⌊x + 4⌋ = 18

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"

The value of x in ⌊x + 4⌋ = 18 is x ∈ [14, 15)

Explanation

Given, ⌊x + 4⌋ = 18

⌊x + 4⌋ = 18 ⇒ 18 ≤ x + 4 < 19

Subtracting 4, 

18 - 4 ≤ x + 4 - 4 < 19 - 4 

14 ≤ x < 15

So, the value of x can be any real number between 14 and 15.

Max from BrightChamps Praising Clear Math Explanations
Ray Thinking Deeply About Math Problems

FAQs on Greatest Integer Function

1.What is the greatest integer function?

Math FAQ Answers Dropdown Arrow

2.What is ⌊8.59⌋?

Math FAQ Answers Dropdown Arrow

3.Is ⌊x + y⌋ = ⌊x⌋ + ⌊y⌋?

Math FAQ Answers Dropdown Arrow

4.What is the smallest integer function?

Math FAQ Answers Dropdown Arrow

5.What is ⌊-6.24⌋?

Math FAQ Answers Dropdown Arrow

6.How does learning Algebra help students in Thailand make better decisions in daily life?

Math FAQ Answers Dropdown Arrow

7.How can cultural or local activities in Thailand support learning Algebra topics such as Greatest Integer Function?

Math FAQ Answers Dropdown Arrow

8.How do technology and digital tools in Thailand support learning Algebra and Greatest Integer Function?

Math FAQ Answers Dropdown Arrow

9.Does learning Algebra support future career opportunities for students in Thailand?

Math FAQ Answers Dropdown Arrow
Math Teacher Background Image
Math Teacher Image

Jaskaran Singh Saluja

About the Author

Jaskaran Singh Saluja is a math wizard with nearly three years of experience as a math teacher. His expertise is in algebra, so he can make algebra classes interesting by turning tricky equations into simple puzzles.

Max, the Girl Character from BrightChamps

Fun Fact

: He loves to play the quiz with kids through algebra to make kids love it.

INDONESIA - Axa Tower 45th floor, JL prof. Dr Satrio Kav. 18, Kel. Karet Kuningan, Kec. Setiabudi, Kota Adm. Jakarta Selatan, Prov. DKI Jakarta
INDIA - H.No. 8-2-699/1, SyNo. 346, Rd No. 12, Banjara Hills, Hyderabad, Telangana - 500034
SINGAPORE - 60 Paya Lebar Road #05-16, Paya Lebar Square, Singapore (409051)
USA - 251, Little Falls Drive, Wilmington, Delaware 19808
VIETNAM (Office 1) - Hung Vuong Building, 670 Ba Thang Hai, ward 14, district 10, Ho Chi Minh City
VIETNAM (Office 2) - 143 Nguyễn Thị Thập, Khu đô thị Him Lam, Quận 7, Thành phố Hồ Chí Minh 700000, Vietnam
Dubai - BrightChamps, 8W building 5th Floor, DAFZ, Dubai, United Arab Emirates
UK - Ground floor, Redwood House, Brotherswood Court, Almondsbury Business Park, Bristol, BS32 4QW, United Kingdom