I have a form input to get a number (it is a price). It can be a decimal like 102,5. I have to compare it with an other decimal for exemple 102,6. How can handle this ? I don\'
Just make it decimal out of this format
$kinda_decimal = "102,5"; $kinda_decimal = floatval(str_replace(",",".",$kinda_decimal));
and compare it