8 lines
214 B
C#
8 lines
214 B
C#
|
public class Fahrenheit : ITemperatureUnit
|
||
|
{
|
||
|
public Fahrenheit() { }
|
||
|
|
||
|
public float FromCelcius(float celcius) => (celcius * 1.8f) + 32f;
|
||
|
public float ToCelcius(float value) => (value - 32f) * .5556f;
|
||
|
}
|