Change threshold data type to float