ParseInt

Kategorie: Script / Strings
Ab Engineversion: 8.0 OC

Beschreibung

Parses a string representing a base 10 number into an integer value. If the string does not entirely consist of a base 10 number, optionally signed, nil is returned.

Syntax

int ParseInt(string value);

Parameter

value:
string representation of a number to parse

Beispiel

ParseInt("14")
Returns the integer 14.
ParseInt("fourteen")
Returns nil.