Next Previous Contents

43. integer

Synopsis

Convert a string to an integer

Usage

Integer_Type integer (String_Type s)

Description

The integer function converts a string representation of an integer back to an integer. If the string does not form a valid integer, a type-mismatch error will be generated.

Example

integer ("1234") returns the integer value 1234.

Notes

This function operates only on strings and is not the same as the more general typecast operator.

See Also

typecast, _slang_guess_type, string, sprintf, char


Next Previous Contents