In my coding I get the values as float and then store it into table.
$new_priceint=((float)$new_price*100);
$used_priceint=((float)$used_price*100);
The variable $new_priceint and $used_priceint are stored in db. For example the value is 439. The same value just I fetched to compare the current value is modified or not, I really didn't get the correct answer.
If I subtract the $newpriceint > $newpriceintdbvalue, this gives the result of 5.6843418860808E-14. For half day I tried for this to get the value as "zero". Actually the db value is '439' and also the current value is '439' but this current is in float. IS not the same value. 439 = 439 right or float(439) == 439 is wrong i dont know really. Anybody can help to solve this issue. How to compare the float values with other values in php
Thanks in advance