Android Celsius to Fahrenheit Convert getTempInFahrenheit(int celsius)

Here you can find the source of getTempInFahrenheit(int celsius)

Description

get Temp In Fahrenheit

License

Apache License

Declaration

public static int getTempInFahrenheit(int celsius) 

Method Source Code

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

public class Main {

    public static int getTempInFahrenheit(int celsius) {
        return getIntWithRound((float) (celsius * 1.8));
    }/*from w  w  w  .ja v  a 2 s.  c o m*/

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

Related

  1. convertFromCelsiusToFahrenheit(float value)
  2. cToF(Double deg_c)
  3. cToF(String deg_c)
  4. toFar(float temp)