Now using %g specifier for rendering floats to text to avoid trailing zeroes