Explicitly cast @max_percentage_threshold to float