Difference between revisions of "Val"
Jump to navigation
Jump to search
(Created page with "<c>val</c> 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 === {| cla...") |
(No difference)
|
Latest revision as of 16:16, 18 March 2020
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