Back to project page MWM-for-Android-Gen1.
The source code is released under:
Apache License
If you think the Android project MWM-for-Android-Gen1 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.anddev.android.weatherforecast.weather; /*from w w w . j a v a2 s . c o m*/ /** Useful Utility in working with temperatures. (conversions). */ public class WeatherUtils { public static int fahrenheitToCelsius(int tFahrenheit) { return (int) ((5.0f / 9.0f) * (tFahrenheit - 32)); } public static int celsiusToFahrenheit(int tCelsius) { return (int) ((9.0f / 5.0f) * tCelsius + 32); } }