ArcBasicDocs

Int

Converts to a whole number.

Int(value)

Parameters

None.

Description

Turns a value into a whole number. A decimal number is rounded to the nearest whole number, with halves going to the even neighbour, so 2.7 becomes 3, 2.5 becomes 2 and 3.5 becomes 4; use Floor to round down. Text is read as a number for as far as it looks like one, so "42 apples" becomes 42, and text that doesn't start with a number becomes 0.

See also