Threshold will now always be an int

added floor to thresh calculation, so now will be an int