[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

Integer Part

Weisstein, Eric W.

The Wayback Machine - https://web.archive.org/web/20200318211451/https://mathworld.wolfram.com/IntegerPart.html


The function gives the integer part of . In many computer languages, the function is denoted int(x). It is related to the floor and ceiling functions and by

(1)

The integer part function satisfies

(2)

and is implemented in the Wolfram Language as IntegerPart[x]. This definition is chosen so that , where is the fractional part. Although Spanier and Oldham (1987) use the same definition as in the Wolfram Language, they mention the formula only very briefly and then say it will not be used further. Graham et al. (1994), and perhaps most other mathematicians, use the term "integer" part interchangeably with the floor function .

Min Max
Re
Im

The integer part function can also be extended to the complex plane, as illustrated above.

Since usage concerning fractional part/value and integer part/value can be confusing, the following table gives a summary of names and notations used. Here, S&O indicates Spanier and Oldham (1987).

notationnameS&OGraham et al. Wolfram Language
ceiling function--ceiling, least integerCeiling[x]
congruence----Mod[m, n]
floor functionfloor, greatest integer, integer partFloor[x]
fractional valuefractional part or SawtoothWave[x]
fractional partno nameFractionalPart[x]
integer partno nameIntegerPart[x]
nearest integer function----Round[x]
quotient----Quotient[m, n]

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.