Replaced try..except with strtofloatdef