Lasso Soft Inc. > Home

[ string->getnumericvalue ]

Method

[String->GetNumericValue] returns the decimal value of a specified character if numeric, or -123456789.000000 if the character is non-numeric. The character within the base string to be inspected is specified starting from 1 for the first character in the string.

  • Syntax
'String Object'->getnumericvalue(integer)
Examples
  • Beginner

To return the numeric value for a character:

Use the [String->GetNumericValue] method. The following example returns the numeric value for the fourth character of a string.

Code

'4321'->getnumericvalue(4)

Result

1.000000

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft