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
If you need to handle values that cannot be converted separately, you can use this method:
try { $valueToUse = trim($stringThatMightBeNumeric) + 0; } catch (\Throwable $th) { // bail here if you need to }