﻿function convertCelsiusToFarhenheit(celsius) {
    return Math.floor(32 + 9 / 5 * celsius)
}

function formatTemperature(value, unit) {
    //if(value == '') return '';
         
	  if(unit == 'C') {
        return (value + '°C');
    } else {
        return (convertCelsiusToFarhenheit(value) + '°F');
    }
}