Overview Module Function Class Tea 3.2.5 Reference Documentation
© 2009 PDM&FC

Function string->int

string->int aString

Converts a string into an integer object.

Parameters:
aString - String object that is supposed to contain the decimal representation of an integer value. If the string starts with a leading "-" character, then the value is considered negative. A leading "+" character is not accepted.
Returns:
An integer object if aString contains the representation of a decimal value. The null object otherwise.

This function tries to convert a string containing the representation of an integer value in base 10 to the corresponding integer value. If the string does not contain a valid integer representation than the null value will be returned.

Trailing or leading spaces are nor allowed.


Overview Module Function Class Tea 3.2.5 Reference Documentation
© 2009 PDM&FC
Report a bug or request new features
© 2009