Skip to main content
MedCalc
Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
working
Show menu Show menu

TRUNC function

Description

TRUNC(x) truncates the number x to an integer by removing the fractional part of x.

The TRUNC function differs from the INT function only when the argument is a negative number.

The argument x can be a real number, a complex number, or a matrix. When it is a matrix, the function returns a matrix with the same dimensions and with the TRUNC function applied to all elements.

Examples

TRUNC(5.6) equals 5

TRUNC(-5.6) equals -5

Calculator

TRUNC(  

Graph

TRUNC function

Related functions