Java Fahrenheit to Celcius fahrenheitToCelsius(float fahrenheit)

Here you can find the source of fahrenheitToCelsius(float fahrenheit)

Description

fahrenheit To Celsius

License

Open Source License

Declaration

public static float fahrenheitToCelsius(float fahrenheit) 

Method Source Code

//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*/
}

Related

  1. fahrenheit2celcius(double f)
  2. fahrenheitToCelsius(double fahrenheit)
  3. fahrenheitToCelsius(double temp)
  4. toCelsius(double f)