Compare 2 floats with PHP Posted on 17 March 2009 by Nicolas Only one way : $res = bccomp($a,$b,$decimals);