Convert and format temperature value