Remove use of floats in snprintf