Val
Jump to navigation
Jump to search
val
returns the numeric value of a given string. (If given a number, returns it as-is; if given a list or map, returns null.)
See also: str
Arguments
Parameter Name | Default Value | Meaning |
---|---|---|
self | string or number | string to get the value of |
Usage Notes
val
may be called with function syntax or dot syntax
Example
"1234.56".val // returns 1234.56