Formualizer Docs

INT

Rounds a number down to the nearest integer.

INT uses floor semantics, so negative values move farther from zero.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=INT(number)

Arguments

ArgumentTypeRequiredDefault
numbernumberRequired—

Remarks

  • Equivalent to mathematical floor (floor(x)).
  • Coercion is lenient for numeric-like inputs; invalid values return an error.
  • Input errors are propagated.

Examples

Evaluate a negative number with a fractional part.

Formula =INT(-4.7)

Expected result -5

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Compare the result on the positive side of zero.

Formula =INT(4.7)

Expected result 4

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Evaluate the function at the zero boundary.

Formula =INT(0)

Expected result 0

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

A nonnumeric text value cannot be used as the number.

Formula =INT("invalid")

Expected result #VALUE!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Drop decimal digits from a positive number

Formula =INT(8.9)

Expected result 8

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Floor a negative number

Formula =INT(-8.9)

Expected result -9

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

Why is INT(-8.9) equal to -9 instead of -8?

INT uses floor semantics, so negative values round toward negative infinity.

Implementation

Engine source

On this page