[String->GetNumericValue] returns the decimal value of a specified character or -1.0 if the character is alphabetic. The character within the base string to be inspected is specified starting from 1 for the first character in the string.
[Output: '1'->(GetNumericValue: 1)]
<?LassoScript
Variable: 'myString' = '1000';
Variable: 'Result' = $myString->(GetNumericValue: 1);
>
Use the [String->GetNumericValue] tag. The following example returns the numeric value for the fourth character of a string.
[Output: '2001'->(GetNumericValue: 4)]
1
Tag Link | [String->GetNumericValue] | Category | String |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 7.0 |
Output Type | Decimal | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft