I am hitting my head against the wall here, probably from my caffine withdrawals 🙂
I am doing a very simple mathmatical calulation:
$a = "0.595"; // these values are being pulled from a database
$b = "-.07";
$c = $a + $b;
$c should equal 0.525
But it keeps returning 0.595
I know it has something to do with the signed value, so I even tried:
$c = $a + (0-abs($b));
Still returns 0.595! 😕
I know I am overlooking something totally obvious here. Any help appreciated!