Exams
Test Series
Previous Year Papers
JEE Main Previous Year Question Paper JEE Advanced Previous Year Papers NEET Previous Year Question Paper CUET Previous Year Papers COMEDK UGET Previous Year Papers UP Polytechnic Previous Year Papers AP POLYCET Previous Year Papers TS POLYCET Previous Year Papers KEAM Previous Year Papers MHT CET Previous Year Papers WB JEE Previous Year Papers GUJCET Previous Year Papers ICAR AIEEA Previous Year Papers CUET PG Previous Year Papers JCECE Previous Year Papers Karnataka PGCET Previous Year Papers NEST Previous Year Papers KCET Previous Year Papers LPUNEST Previous Year Papers AMUEEE Previous Year Papers IISER IAT Previous Year Papers Bihar Diploma DECE-LE Previous Year Papers NPAT Previous Year Papers JMI Entrance Exam Previous Year Papers PGDBA Exam Previous Year Papers AP ECET Previous Year Papers PU CET Previous Year Papers GPAT Previous Year Papers CEED Previous Year Papers AIAPGET Previous Year Papers JKCET Previous Year Papers HPCET Previous Year Papers CG PAT Previous Year Papers SRMJEEE Previous Year Papers BCECE Previous Year Papers AGRICET Previous Year Papers TS PGECET Previous Year Papers MP PAT Previous Year Papers IIT JAM Previous Year Papers CMC Vellore Previous Year Papers ACET Previous Year Papers TS EAMCET Previous Year Papers NATA Previous Year Papers AIIMS MBBS Previous Year Papers BITSAT Previous Year Papers JEXPO Previous Year Papers HITSEEE Previous Year Papers AP EAPCET Previous Year Papers UCEED Previous Year Papers CG PET Previous Year Papers OUAT Previous Year Papers VITEEE Previous Year Papers
Syllabus
JEE Main Syllabus JEE Advanced Syllabus NEET Syllabus CUET Syllabus COMEDK UGET Syllabus UP Polytechnic JEECUP Syllabus AP POLYCET Syllabus TS POLYCET Syllabus KEAM Syllabus MHT CET Syllabus WB JEE Syllabus OJEE Syllabus ICAR AIEEA Syllabus CUET PG Syllabus NID Syllabus JCECE Syllabus Karnataka PGCET Syllabus NEST Syllabus KCET Syllabus UPESEAT EXAM Syllabus LPUNEST Syllabus PUBDET Syllabus AMUEEE Syllabus IISER IAT Syllabus NPAT Syllabus JIPMER Syllabus JMI Entrance Exam Syllabus AAU VET Syllabus PGDBA Exam Syllabus AP ECET Syllabus GCET Syllabus CEPT Syllabus PU CET Syllabus GPAT Syllabus CEED Syllabus AIAPGET Syllabus JKCET Syllabus HPCET Syllabus CG PAT Syllabus BCECE Syllabus AGRICET Syllabus TS PGECET Syllabus BEEE Syllabus MP PAT Syllabus MCAER PG CET Syllabus VITMEE Syllabus IIT JAM Syllabus CMC Vellore Syllabus AIMA UGAT Syllabus AIEED Syllabus ACET Syllabus TS EAMCET Syllabus PGIMER Exam Syllabus NATA Syllabus AFMC Syllabus AIIMS MBBS Syllabus BITSAT Syllabus BVP CET Syllabus JEXPO Syllabus HITSEEE Syllabus AP EAPCET Syllabus GITAM GAT Syllabus UPCATET Syllabus UCEED Syllabus CG PET Syllabus OUAT Syllabus IEMJEE Syllabus VITEEE Syllabus SEED Syllabus MU OET Syllabus
Books
Cut Off
JEE Main Cut Off JEE Advanced Cut Off NEET Cut Off CUET Cut Off COMEDK UGET Cut Off UP Polytechnic JEECUP Cut Off AP POLYCET Cut Off TNEA Cut Off TS POLYCET Cut Off KEAM Cut Off MHT CET Cut Off WB JEE Cut Off ICAR AIEEA Cut Off CUET PG Cut Off NID Cut Off JCECE Cut Off Karnataka PGCET Cut Off NEST Cut Off KCET Cut Off UPESEAT EXAM Cut Off AMUEEE Cut Off IISER IAT Cut Off Bihar Diploma DECE-LE Cut Off JIPMER Cut Off JMI Entrance Exam Cut Off PGDBA Exam Cut Off AP ECET Cut Off GCET Cut Off CEPT Cut Off PU CET Cut Off CEED Cut Off AIAPGET Cut Off JKCET Cut Off HPCET Cut Off CG PAT Cut Off SRMJEEE Cut Off TS PGECET Cut Off BEEE Cut Off MP PAT Cut Off VITMEE Cut Off IIT JAM Cut Off CMC Vellore Cut Off ACET Cut Off TS EAMCET Cut Off PGIMER Exam Cut Off NATA Cut Off AFMC Cut Off AIIMS MBBS Cut Off BITSAT Cut Off BVP CET Cut Off JEXPO Cut Off HITSEEE Cut Off AP EAPCET Cut Off GITAM GAT Cut Off UCEED Cut Off CG PET Cut Off OUAT Cut Off VITEEE Cut Off MU OET Cut Off
Latest Updates
Eligibility
JEE Main Eligibility JEE Advanced Eligibility NEET Eligibility CUET Eligibility COMEDK UGET Eligibility UP Polytechnic JEECUP Eligibility TNEA Eligibility TS POLYCET Eligibility KEAM Eligibility MHT CET Eligibility WB JEE Eligibility OJEE Eligibility ICAR AIEEA Eligibility CUET PG Eligibility NID Eligibility JCECE Eligibility Karnataka PGCET Eligibility NEST Eligibility KCET Eligibility LPUNEST Eligibility PUBDET Eligibility AMUEEE Eligibility IISER IAT Eligibility Bihar Diploma DECE-LE Eligibility NPAT Eligibility JIPMER Eligibility JMI Entrance Exam Eligibility AAU VET Eligibility PGDBA Exam Eligibility AP ECET Eligibility GCET Eligibility CEPT Eligibility PU CET Eligibility GPAT Eligibility CEED Eligibility AIAPGET Eligibility JKCET Eligibility HPCET Eligibility CG PAT Eligibility SRMJEEE Eligibility BCECE Eligibility AGRICET Eligibility TS PGECET Eligibility MP PAT Eligibility MCAER PG CET Eligibility VITMEE Eligibility IIT JAM Eligibility CMC Vellore Eligibility AIMA UGAT Eligibility AIEED Eligibility ACET Eligibility PGIMER Exam Eligibility CENTAC Eligibility NATA Eligibility AFMC Eligibility AIIMS MBBS Eligibility BITSAT Eligibility JEXPO Eligibility HITSEEE Eligibility AP EAPCET Eligibility GITAM GAT Eligibility UPCATET Eligibility UCEED Eligibility CG PET Eligibility OUAT Eligibility IEMJEE Eligibility SEED Eligibility MU OET Eligibility

Greatest Integer Function – Graph, Domain, Range & Examples

Last Updated on Jul 04, 2025
Download As PDF
IMPORTANT LINKS

The Greatest Integer Function, also called the floor function, rounds any number down to the nearest whole number. It gives the largest integer that is less than or equal to the given number. This function is often shown as ⌊x⌋ or [x]. For example, ⌊5.6⌋ = 5 and ⌊–2.3⌋ = –3. The graph of this function looks like steps, so it’s also called a step function. The domain (input values) of this function is all real numbers (R), and the range (output values) is all integers (Z). It's useful in rounding off numbers downward in math and programming.

What is Greatest Integer Function?

The Greatest Integer Function, also known as the floor function, gives the largest integer that is less than or equal to a given number. It is written using this symbol: ⌊x⌋ (read as "floor of x").

Maths Notes Free PDFs

Topic PDF Link
Class 12 Maths Important Topics Free Notes PDF Download PDF
Class 10, 11 Mathematics Study Notes Download PDF
Most Asked Maths Questions in Exams Download PDF
Increasing and Decreasing Function in Maths Download PDF

In simple words, if you give any number to this function, it will round the number down to the nearest whole number. For example:

  • ⌊4.8⌋ = 4
  • ⌊3⌋ = 3
  • ⌊–2.5⌋ = –3

Even if the number is negative or a decimal, the function still picks the closest whole number less than or equal to that number.

Let’s say a number x lies between n and n+1, such that n ≤ x < n+1, where n is an integer. Then, the value of the greatest integer function is n, written as ⌊x⌋ = n.

For example, if x = 6.9, it lies between 6 and 7, so ⌊6.9⌋ = 6.
If x = –1.2, it lies between –2 and –1, so ⌊–1.2⌋ = –2.

This function is widely used in mathematics, programming, and real-life situations where values need to be rounded down.

UGC NET/SET Course Online by SuperTeachers: Complete Study Material, Live Classes & More

Get UGC NET/SET SuperCoaching @ just

₹25999 ₹8749

Your Total Savings ₹17250
Explore SuperCoaching

Domain and Range of Greatest Integer Functions

The range of the greatest integer function is an integer that is (Z) and the domain of the greatest integer function is R i.e. any real number. This implies that for any graph the inputs of the function can take any real number but the output will constantly be an integer.

That is a function represented by [x] recited as step ′x′

It is specified for all x where the domain = (−∞, ∞) and the range is all integers.

In the greatest integer function method, we will simply round off the assigned number to the most adjacent integer that is smaller than or equal to the number itself. Obviously, the input variable x can have any real value. But the output will always be an integer. Some of the examples of the greatest integer function are given in the tabular format:

Values of x

f(x)=⌊x⌋

3.2

f(3.2) = ⌊3.2⌋ = 3

2.888

f(2.888) = ⌊2.888⌋ = 2

−√3

f(−√3) = ⌊−√3⌋ = −3

−7

f(−7) = ⌊−7⌋ = −7

−2.88

f(−2.88) = ⌊−2.88⌋ = −3

6

f(6) = ⌊6⌋ = 6

Greatest Integer Function Graph

The greatest integer function graph is also identified as the step curve because of the step formation of the curve. Let’s understand the graph of the greatest integer function through a plot. Suppose f(x) = ⌊x⌋, if x is an integer, then the value of f will be x itself and if x is not an integer, then the value of x will be the integer just smaller than x.

Example: For all numbers resting in the interval [0,1), the output of f will be 0. That is:

x

0

0.3

0.6

0.99

1

f(x)

0

0

0

0

1

For all numbers resting in the interval [−1,0), f will use the value −1 and so on for the next set of numbers.

x

-1

-0.5

-0.4

-0.2

0

f(x)

-1

-1

-1

-1

0

Similarly, for all numbers resting in the entire interval [1,2), f will take the value 1.

x

1

1.3

1.6

1.99

2

f(x)

1

1

1

1

2

  • So for an integer m, [m, m+1) will hold the value of the greatest integer function as m. From the graph, we can say that the function has a fixed value within any two integers.
  • As soon as the subsequent integer appears, the function value shifts by one unit. This indicates that the value of f at x = 1 is 1.
  • Therefore there will be a hollow dot at the location (1,0) and a solid dot at the location (1,1).
  • Wherein the hollow dot means not involve the value and the solid dot signifies including the value. These observations direct us to the above graph.

Learn about Limit and Continuity

Test Series
133.9k Students
NCERT XI-XII Physics Foundation Pack Mock Test
323 TOTAL TESTS | 3 Free Tests
  • 3 Live Test
  • 163 Class XI Chapter Tests
  • 157 Class XII Chapter Tests

Get Started

Properties of Greatest Integer Functions

There are different properties of the greatest integer function some of them are as follows:

Learn about Logarithmic functions

Important Points on Greatest Integer Functions

The important points on the greatest integer functions are given below:

  • If x is a number that lies between successive integers m and m+1 then ⌊x⌋=m.
  •  If and only if x is an integer, then the value of ⌊x⌋=x.
  • The domain of the greatest integer function is R(all real values) and its range is Z(set of integers).
  • The fractional part of a given number will constantly be non-negative, as x will always be higher than or equal to ⌊x⌋. If x is an integer, then its fractional component will be zero.
  • The domain of the fractional part function exists in R and its range is [0,1).

Applications of the Greatest Integer Function

The greatest integer function is very useful in real-life situations, especially when dealing with costs, prices, and measurements that need to be rounded down to the nearest whole number.

1. Billing and Invoicing

In shops or industries, when goods are sold by weight or volume, billing is often done using the floor value.
Example: If rice bags weigh 49.9 kg, they might be billed as 49 kg.

2. Programming and Algorithms

Many programming tasks use ⌊x⌋ to ensure integers are used where decimals aren’t valid.
Example: Dividing items among people evenly without fractions.

3. Ticketing and Pricing

When calculating ticket prices based on distance or weight, partial values are ignored using this function.
Example: 5.9 km of travel might be charged for 5 km.

4. Construction and Packaging

Used to calculate how many full items or boxes can fit in a space.
Example: If a shelf can hold 2.9 boxes per row, it will only fit 2 full boxes.

5. Mathematics and Graphing

The function is used in step graphs, and is helpful in solving piecewise functions, inequalities, and real-world math problems.

Greatest Integer Function and Smallest Integer Function

Feature

Greatest Integer Function

Smallest Integer Function

Notation

⌊x⌋ (Floor function)

⌈x⌉ (Ceiling function)

Meaning

Largest integer less than or equal to x

Smallest integer greater than or equal to x

Rounding Direction

Rounds down to the nearest integer

Rounds up to the nearest integer

Also Known As

Floor Function

Ceiling Function

Example 1

⌊5.3⌋ = 5

⌈5.3⌉ = 6

Example 2

⌊–5.3⌋ = –6

⌈–5.3⌉ = –5

Solved Examples of Greatest Integer Function

Some solved examples of the greatest integer function are given below:

Example 1: ⌊2.4⌋

Remember that number we are looking for must satisfy two conditions.

  • The number should be an integer one.
  • The number should be lesser than or equal to 2.4.

So a number that is smaller than 2.4 and is an integer is 2.

Therefore ⌊2.4⌋ = 2

Example 2: ⌊-2.66⌋

Again, the number we are viewing for must satisfy the following two conditions.

  • The number should be an integer one.
  • The number should be lesser than or equal to -2.66.
  • A common mistake that students mostly commit is to assume that [-2.66] = -2.
  • For ⌊2.66⌋ = 2, it resembles that we just lifted the .5. But that is not the case with negative numbers and ⌊-2.66⌋ = -2 is the wrong answer.

⌊-2.66⌋ is not equal to -2.

Recollect that we are searching for a number smaller than -2.66. Hence the number that is smaller than -2.66 is -3.

So ⌊-2.66⌋= -3

Example 3: ⌊5⌋

Here we are viewing for a number lesser than or equal to 5. As 5 is equivalent to 5.

Therefore ⌊5⌋= 5

Example 4: ⌊0. 56⌋

Till now it would be certain that we would focus on the number that is less or equal and try to neglect as much as possible the word greatest. So the integer that is less than 0.56 is 0.

Since it is 0, ⌊0. 56⌋ = 0

We hope that the above article on Greatest Integer Functions is helpful for your understanding and exam preparations. Stay tuned to the Testbook app for more updates on related topics from Mathematics, and various such subjects. Also, reach out to the test series available to examine your knowledge regarding several exams.

Important Links
NEET Exam
NEET Previous Year Question Papers NEET Mock Test NEET Syllabus
CUET Exam
CUET Previous Year Question Papers CUET Mock Test CUET Syllabus
JEE Main Exam
JEE Main Previous Year Question Papers JEE Main Mock Test JEE Main Syllabus
JEE Advanced Exam
JEE Advanced Previous Year Question Papers JEE Advanced Mock Test JEE Advanced Syllabus

More Articles for Maths

FAQs For Greatest Integer Function

The greatest integer function is a function that presents the greatest integer which is less than or equivalent to the number. Such a number that is less than or equal to a number x is depicted by the notation ⌊x⌋.

The range of the greatest integer function is an integer that is (Z).

The domain of the greatest integer function is R i.e any real number.

The greatest integer function of 1 is 1.

The greatest integer function of 0 is zero.

Rounding a number depends on its decimal value, while the GIF always moves down to the nearest integer, even for negative numbers.

It is often used in programming, computer science, and mathematical problems involving floors, ceilings, and modular arithmetic.

Report An Error