<?php
$somevariable=35.00-12.56-22.44;
$balance = sprintf("%.2f", $somevariable);
echo $balance;
?>
I have solution for this. But I dont know the reason. Please tell me the reason.
why we are getting -0.00 instead of 0.00, my intention is to get only 0.00 in this situation. please check and advice me here or mail me.
My mail id: maries.capminds@gmail.com

