"n" is also declared/used above in another case (the case for handling integer formats). I renamed the float case's "n" to "r" to reduce the possibility of confusion.