Making sure invalid values can not be returned due to FP issues