unaryMinus
-x
unaryMinus(x)
Inverse the sign of a value. Converts booleans and strings to numbers.
Try it yourself:
$1 | -4.5
| |
$2 | -(-5.6)
| |
$3 | -"22"
|
Inverse the sign of a value. Converts booleans and strings to numbers.
Try it yourself:
$1 | -4.5
| |
$2 | -(-5.6)
| |
$3 | -"22"
|