I am using symfony 1.1 to read an API and store the values in DB
if(($xmlArray->{'MDD'} == 0) || ($xmlArray->{'MDD'} == '0') ){
$autoStraObj->setRisk(' - ');
}else{
$autoStraObj->setRisk(round(($xmlArray->{'Pips'} / $xmlArray->{'MDD'}), 10));
}
For Some Records, the above code results with
Warning: Division by zero in.... Not sure, that is the issue here