signedNumber ( string text , boolean|default:false _toInteger ) : number
Convert a string into a number. The number can be negative.
See also
numberExample
2002
console(signedNumber("2002.1512")) //-> 2002.1512
console(signedNumber("-2002.1512", true)) //-> -2002
Parameters
text
_toInteger (optional)
if true, returns an integer, else return a float