Floating Point Comparison Problem || Laravel || PHP
#laravel #php #tips
In the PHP language, there is a big problem with floating point comparison. It doesn’t return the correct answer.
now how will you solve this problem? you can try the round() function in your code.
want to know more details, you can follow this
https://www.php.net/manual/en/language.types.float.php#language.types.float.comparison
Follow this Facebook page:
https://www.facebook.com/laraveltipstricks