INTVALUE ER function

The INTVALUE function returns an Int value that represents the specified string.

Syntax 1

INTVALUE (text)

Syntax 2

INTVALUE (number)

Arguments

text: String

A text value that must be converted to an Int number.

number: Real or Integer

A numeric Real or Integer value that must be converted to an Int number.

Return values

Int

The resulting numeric value.

Usage notes

Any decimal places are truncated.

Example 1

INTVALUE ("100.77") returns the Int value 100.

Example 2

INTVALUE (-100.77) returns the Int value -100.

Additional resources

Type conversion functions