php numbers: assert( 1.0 < 2.0 )

Posted by xtofl on Stack Overflow See other posts from Stack Overflow or by xtofl
Published on 2010-06-17T13:03:54Z Indexed on 2010/06/17 13:13 UTC
Read the original article Hit count: 177

Filed under:
|
|

How can this

<?php
assert( 1.0 < 2.0 );
?>

result in

Warning: assert() [function.assert]: Assertion failed in C:\Program Files (x86)\wamp\www\test.php on line 2

Edit: depending on the file I put this code in, 1.0 < 2.0 evaluates to false or true.

© Stack Overflow or respective owner

Related posts about php

Related posts about numbers