I am facing one weird issue, sum of array is 1 but when I checking it into the IF condition it returns false.
$array = array
(
    0 => 0.237,
    1 => 0.318,
    2 => 0.215,
    3 => 0.06,
    4 => 0.069,
    5 => 0.053,
    6 => 0.048
);
if(array_sum($array) != 1){
    echo "It's not one";
} else {
    echo "It's one"; 
}
Above code is returning It's not one instead of It's one.
 
     
    