Android Fahrenheit to Celsius Convert getTempIntInCelsius(int fahrenheit)

Here you can find the source of getTempIntInCelsius(int fahrenheit)

Description

get Temp Int In Celsius

License

Apache License

Declaration

public static int getTempIntInCelsius(int fahrenheit) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static int getTempIntInCelsius(int fahrenheit) {
        return getIntWithRound((float) (fahrenheit / 1.8));
    }/*from  w  ww  .  jav a 2s .  com*/

    public static int getIntWithRound(float f) {
        return Math.round(f);
    }
}

Related

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