Added extra check to avoid storing a single dot as float value