This is killing me! I\'ve never had so much trouble and I can\'t figure out what I\'m doing wrong here.
If I have a number, say 2.32, and I want to do math with it it wo
You need to assign $income in the following manner to get rid of the underlying SimpleXMLElement:
$income
SimpleXMLElement
$income = (float) $commission;
Example of what happens when you don't:
$x = simplexml_load_string("2.4"); echo $x * 100; // output: 200