Val

From MiniScript Wiki
Revision as of 16:16, 18 March 2020 by 71.226.33.30 (talk) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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