Maptitude GISDK Help |
Converts a string to a real number.
real_value = StringToReal(string input_string)
Argument |
Contents |
input_string |
Any string |
A real number equal to the value of input_string.
Returns zero if the string begins with a non-numeric character or is null.
Conversion stops at any non-numeric character (except a period).
Can also be called as S2R() and Value().
rval1 = StringToReal("35.012") |
// rval1 = 35.012 |
rval2 = StringToReal("35FRED") |
// rval2 = 35 |
rval3 = S2R("Hello35") |
// rval3 = 0 |
rval4 = S2R(null) |
// rval4 = 0 |
Function |
Summary |
Formats a number |
|
Converts an integer to a string representation of the integer value |
|
Converts a real number to an integer |
|
Converts a real number to a string |
|
Converts a string to an integer value |
|
Converts a string to a real number |
©2025 Caliper Corporation | www.caliper.com |