This is my array
$data['myarray'] = ["1" => 1.2, "10" => 0.911, "50" => 0.811, "100" => 0.37];
if using json_encode it will display like json_encode($data['myarray']
{"1":{"1":1.2,"10":0.91100000000000003,"50":0.81100000000000005,"100":0.37}}
I don't understand why my var has change to other number