The number_format would cause this issue, and your math seems wrong. I think it would be more like:
$ATC_itemPrice = $Recordset2reccart->getColumnVal("price") - ($Recordset2reccart->getColumnVal('discount') * $Recordset2reccart->getColumnVal("price"));// column binding