Puts a decimal number to a fixed length buffer