int32()

Scalar. Converts a given string into an integer.

Syntax

int32 ( string )

Parameters

string

A string that starts with an optional minus sign and contains only digits.

Usage

Converts a given string into an integer. The function takes a string as its argument, and the function returns an integer. An invalid string causes the function to return NULL.

Example

int32 ('1935') returns 1935.