my request input 0.08 but shows 0.08000000000000000166533453693773481063544750213623046875 on building var_dump why?
when I pass 50 it shows 50 and it works perfectly.
$result_query->where("height, ">=",0.08);
$result_query->where("height", "<=",99.99);
$result = $result_query->count();
echo "<pre>";
$data = var_dump($result_query->getBindings());
print_r($data);
I already passed 0.08 as the float value.
array(7) {
[0]=>
float(0.08000000000000000166533453693773481063544750213623046875)
[1]=>
int(50)
[2]=>
float(0.08000000000000000166533453693773481063544750213623046875)
[3]=>
float(99.9899999999999948840923025272786617279052734375)
[4]=>
int(1)
[5]=>
string(1) "0"
[6]=>
int(0)
}
Expected
array(7) {
[0]=>
float(0.08)
[1]=>
int(50)
[2]=>
float(0.08)
[3]=>
float(99.99)
[4]=>
int(1)
[5]=>
string(1) "0"
[6]=>
int(0)
}
I have also set. ini_set('precision', 8);
my hosting is in sitegroud cloud server.