My code :
$baseprice=1705000/1.1; var_dump($baseprice); $parseprice=intval($baseprice); var_dump($parseprice);
Result :
f
You are using floating point numbers which will lose precision (see this link).
If you are handling currency use integers and work in cents, pence, pfennigs, or whatever. Convert to a currency format just before display.