Android Fahrenheit to Celsius Convert FahrenheitToCelcius(int temp)

Here you can find the source of FahrenheitToCelcius(int temp)

Description

Fahrenheit To Celcius

Declaration

public static int FahrenheitToCelcius(int temp) 

Method Source Code

//package com.java2s;

public class Main {
    public static int FahrenheitToCelcius(int temp) {

        double celcius = (temp - 32) * 5 / 9;
        return (int) celcius;
    }//from w  w  w  .  jav a  2s .co m
}

Related

  1. convertFromFahrenheitToCelsius(float value)
  2. getTempIntInCelsius(int fahrenheit)
  3. getTempInCelsius(float fahrenheit)