#248 More flexible checking for float value