gives the integer part of x.


  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • IntegerPart[x] in effect takes all digits to the left of the decimal point and drops the others.
  • IntegerPart[x]+FractionalPart[x] is always exactly x.
  • IntegerPart[x] returns an integer when x is any numeric quantity, whether or not it is an explicit number.
  • For exact numeric quantities, IntegerPart internally uses numerical approximations to establish its result. This process can be affected by the setting of the global variable $MaxExtraPrecision.
  • IntegerPart applies separately to real and imaginary parts of complex numbers.
  • IntegerPart automatically threads over lists.
Introduced in 1996