Skip to content
Snippets Groups Projects
Commit db270934 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Added converter Kelvin -> Celcius

parent 3f79b78d
No related branches found
No related tags found
No related merge requests found
...@@ -1554,6 +1554,16 @@ public class WeatherUtil { ...@@ -1554,6 +1554,16 @@ public class WeatherUtil {
return (celciusTemp * 1.8) + 32; return (celciusTemp * 1.8) + 32;
} }
/**
*
* @param kelvinTemp
* @return
*/
public double getCelciusFromKelvin(Double kelvinTemp)
{
return kelvinTemp - 273.15;
}
/** /**
* Convert from inches to mm * Convert from inches to mm
* @param inches * @param inches
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment