public class TemperatureUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
DEG_C_PER_DEG_F
Number of degrees Celcius in one degree Fahrenheit.
|
static double |
DEG_F_PER_DEG_C
Number of degrees Fahrenheit in one degree Celcius.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
celciusToFahrenheit(double degc)
Converts degrees Celcius to degrees Fahrenheit.
|
static double |
fahrenheitToCelcius(double degf)
Converts degrees Fahrenheit to degrees Celcius.
|
public static final double DEG_F_PER_DEG_C
public static final double DEG_C_PER_DEG_F
public static double fahrenheitToCelcius(double degf)
degf - temperature in degrees Fahrenheitpublic static double celciusToFahrenheit(double degc)
degc - temperature in degrees Celcius