Here you can find the source of getTempIntInCelsius(int fahrenheit)
public static int getTempIntInCelsius(int fahrenheit)
//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); } }