Deviopath › Go

Celsius to Fahrenheit

Easy · Numbers

The formula is F = C*9/5 + 32. In Go, int division truncates, so convert to float64 before dividing. math.Round rounds to the nearest integer; multiply by 10, round, then divide by 10 for one decimal place.

Write ToFahrenheit(celsius) that converts to Fahrenheit rounded to 1 decimal place.

Next: Largest of Three