I have a few floats:
-4.50 +6.25 -8.00 -1.75
How can I change all these to negative floats so they become:
-4.50 -6.25 -8.00 -1
using alberT and Dan Tao solution:
negative to positive and viceversa
$num = $num <= 0 ? abs($num) : -$num ;