Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Greatest Integer Function – Definition, Properties & Examples

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon

How to Calculate the Greatest Integer Function of Any Number?

The concept of Greatest Integer Function plays a key role in mathematics and is widely applicable to both real-life situations and exam scenarios. Understanding how this function rounds numbers down to the nearest integer—no matter if the input is positive, negative, or decimal—makes a big difference in algebra, calculus, and competitive exam problem-solving.


What Is Greatest Integer Function?

A greatest integer function is defined as a function that gives the largest integer less than or equal to a given real number. It is commonly denoted as ⌊x⌋ (read as “floor x”). You’ll find this concept applied in areas such as types of functions, step functions, and solutions to inequalities involving integer constraints.


Key Formula for Greatest Integer Function

Here’s the standard formula: \( f(x) = \lfloor x \rfloor \), where for any real number x, ⌊x⌋ returns the greatest integer n such that n ≤ x < n+1.


Cross-Disciplinary Usage

Greatest integer function is not only useful in Maths but also plays an important role in Physics, Computer Science, and daily logical reasoning. Students preparing for JEE or NEET will see its relevance in various questions, such as programming logic, floor division, and analyzing graphs for calculus discontinuities.


Step-by-Step Illustration

x (Input) ⌊x⌋ (Output) Explanation
4.7 4 4 is the largest integer less than or equal to 4.7
-2.3 -3 -3 is the largest integer less than or equal to -2.3
7 7 For any integer input, ⌊x⌋ = x
0.99 0 0 is less than 0.99 and next integer is 1
-1 -1 Integer input returns itself

Speed Trick or Vedic Shortcut

Here’s a quick shortcut that helps solve problems faster when working with greatest integer function. Many students use this trick during timed exams to save crucial seconds.


Example Trick: To find ⌊x⌋ for negative decimals quickly, just subtract 1 from the integer part if x is not already an integer.


  1. Take x = -5.2
    Integer part is -5, but since x is negative and not integer, ⌊-5.2⌋ = -6

  2. Take x = 4.8
    Ignore decimals, answer is 4

Tricks like this aren’t just cool—they’re practical in competitive exams like NTSE, Olympiads, and even JEE. Vedantu’s live sessions include more such shortcuts to help you build speed and accuracy.


Try These Yourself

  • Find ⌊-7.9⌋ and ⌊1.2⌋.
  • Solve for x if ⌊x + 2.5⌋ = 5.
  • Graph the greatest integer function in the interval [-3, 3].
  • State the domain and range of ⌊x⌋.

Frequent Errors and Misunderstandings

  • Confusing ⌊x⌋ with regular rounding—⌊x⌋ always goes to the nearest integer below, not nearest overall.
  • Forgetting negative number handling: ⌊-3.1⌋ is -4, not -3.
  • Using GIF and INT or FLOOR on calculators without checking syntax—sometimes INT(x) behaves slightly differently depending on brand.

Relation to Other Concepts

The idea of greatest integer function connects closely with topics such as the step function and the floor function. Mastering this helps with understanding piecewise functions, calculus discontinuities, and accurate graphing. You can also compare with the ceiling function to see how both “floor” and “ceiling” round numbers differently.


Classroom Tip

A quick way to remember greatest integer function: put the number on the number line and pick the first whole number on its left (for negative, left is “more negative”). Vedantu’s teachers often use horizontal step graphs with open and closed circles at endpoints to reinforce this during live classes.


We explored greatest integer function—from definition, formula, examples, mistakes, and connections to other subjects. Continue practicing with Vedantu to become confident in solving problems using this concept.


Continue exploring related concepts: Functions and Types, Floor Function, Domain and Range in Relations, Step Function.

FAQs on Greatest Integer Function – Definition, Properties & Examples

1. What is the greatest integer function? Provide some examples.

The greatest integer function, denoted as f(x) = [x], is a function that takes a real number 'x' as input and gives the greatest integer that is less than or equal to 'x' as the output. It essentially rounds down any real number to the nearest integer.

  • For a positive decimal, [8.9] = 8.
  • For a positive integer, [7] = 7.
  • For a negative decimal, [-4.6] = -5 (since -5 is the greatest integer that is less than -4.6).

2. What is the symbol used to represent the greatest integer function?

The most common symbol for the greatest integer function is a pair of square brackets around the variable or number, like [x]. It is also sometimes referred to as the floor function and can be represented by the symbol ⌊x⌋. Both notations are widely accepted in the CBSE/NCERT curriculum.

3. How do you determine the domain and range of the greatest integer function, f(x) = [x]?

Understanding the domain and range is crucial for analysing functions:

  • Domain: The domain of the greatest integer function is the set of all real numbers (ℝ). This is because you can input any real number (positive, negative, integer, or decimal) into the function.
  • Range: The range of the greatest integer function is the set of all integers (ℤ). This is because the output of the function is always an integer, by its very definition.

4. How do you calculate the value of the greatest integer function for different types of real numbers?

To calculate the value of [x], you must find the largest integer that is not greater than x. Here is a simple guide:

  • If x is an integer: The value is x itself. For example, [6] = 6 and [-10] = -10.
  • If x is a positive non-integer: The value is the integer part of the number. For example, [3.14] = 3.
  • If x is a negative non-integer: The value is the integer to the immediate left on the number line. For example, [-5.99] = -6. This is a common point of error for students.

5. What does the graph of the greatest integer function look like, and why is it called a 'step function'?

The graph of the greatest integer function consists of a series of horizontal line segments. It is called a 'step function' because the graph resembles a staircase. For any interval [n, n+1) where 'n' is an integer, the function's value remains constant at 'n'. At every integer value (x=n), the function 'jumps' up to the next integer value, creating a visible break or step in the graph. This visual characteristic is the reason for its name.

6. Is the greatest integer function continuous? Explain with reference to the CBSE syllabus.

No, the greatest integer function f(x) = [x] is not a continuous function. According to the Class 12 CBSE syllabus on Continuity and Differentiability, a function is discontinuous at a point if its graph has a break or jump. The greatest integer function is discontinuous at every integer point because the limit of the function as x approaches an integer from the left is different from the limit as it approaches from the right. For example, at x=3, the left-hand limit is 2, while the right-hand limit is 3.

7. How does the greatest integer function differ from the ceiling function and the fractional part function?

These three functions are related but have distinct definitions and outputs:

  • Greatest Integer Function [x] (Floor): Rounds down to the nearest integer. Example: [3.7] = 3.
  • Ceiling Function ⌈x⌉: Rounds up to the nearest integer. Example: ⌈3.7⌉ = 4.
  • Fractional Part Function {x}: Gives only the decimal part of a number, defined as {x} = x - [x]. Example: {3.7} = 3.7 - [3.7] = 3.7 - 3 = 0.7.

In essence, the greatest integer function gives the integer part, while the fractional part function gives the non-integer part.

8. What are some important properties of the greatest integer function for solving problems?

Several key properties of the greatest integer function are useful for solving questions in board exams and competitive tests:

  • [x + n] = [x] + n, where 'n' is any integer.
  • [x] + [-x] = 0, if x is an integer.
  • [x] + [-x] = -1, if x is not an integer.
  • If [x] = n, then n ≤ x < n + 1.
  • [x] + [y] ≤ [x + y].

These properties are frequently applied in problems involving limits, continuity, and integration.