Fixed detection for floats in the number helper