Here you can find the source of fahrenheitToCelsius(float fahrenheit)
public static float fahrenheitToCelsius(float fahrenheit)
//package com.java2s; //License from project: Open Source License public class Main { public static final float FAHRENHEIT_TO_CELSIUS_MULT = 5f / 9f; public static final float FARENHEIT_TO_CELSIUS_OFFSET = -32; public static float fahrenheitToCelsius(float fahrenheit) { return FAHRENHEIT_TO_CELSIUS_MULT * (fahrenheit + FARENHEIT_TO_CELSIUS_OFFSET); }/*from w w w. j a v a2 s . c o m*/ }