change 1/0 to FLT_MAX