I am not familiar with PHP at all and had a quick question.
I have 2 variables pricePerUnit and InvoicedUnits. Here\'s the code that is set
pricePerUnit
InvoicedUnits
You want the non-locale-aware floatval function:
float floatval ( mixed $var ) - Gets the float value of a string.
Example:
$string = '122.34343The'; $float = floatval($string); echo $float; // 122.34343