Software Engineering WikiSE Wiki

CelsiusToFahrenheit

Updated MarkdownEdit

Converts Celsius to Fahrenheit.

  • Follows the conversion formula F = 1.8C + 32.
func CelsiusToFahrenheit(d float64) float64 {
	return 1.8 * d + 32.0
}
CelsiusToFahrenheit(33.0) // 91.4