type Celsius float32
type Fahrenheit float32
why do we need to typecast one to other?
type Celsius float32
type Fahrenheit float32
why do we need to typecast one to other?
The return type for the function is Fahrenheit. If you change that, I think there will be no requirement for typecasting.