INT2 scalar function

The INT2 function returns a small integer (a binary integer with a precision of 15 bits) representation of a value of a different data type.

Read syntax diagramSkip visual syntax diagram INT2 (expression)

The schema is SYSIBM.

The INT2 scalar function is a synonym for the SMALLINT scalar function.