Skip to content

Instantly share code, notes, and snippets.

@Naouak
Created November 24, 2017 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Naouak/1dcfde9453bfa35e7edfbf709d52cfcc to your computer and use it in GitHub Desktop.
Save Naouak/1dcfde9453bfa35e7edfbf709d52cfcc to your computer and use it in GitHub Desktop.
<?php
echo 0.1+0.2==0.3?'true':'false';
// false
echo strval(0.1+0.2)==0.3?'true':'false';
// true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment