Maptitude GISDK Help

StringToInt(), S2I()

Summary

Converts a string to an integer value.

 

Syntax

int_value = StringToInt(string input_string)

 

Argument

Contents

input_string

Any string

 

Returns

An integer equal to the value of input_string.

 

Notes

Example

ival1 = StringToInt("35.012")

// ival1 = 35

ival2 = StringToInt("35FRED")

// ival2 = 35

ival3 = StringToInt("Hello35")

// ival2 = 0

 

See Also

Function

Summary

Format()

Formats a number

IntToString()

Converts an integer to a string representation of the integer value

RealToInt()

Converts a real number to an integer

RealToString()

Converts a real number to a string

StringToReal()

Converts a string to a real number

Value()

Converts a string to a real number

 

 

©2025 Caliper Corporation www.caliper.com