Java Celsius to Fahrenheit celsiusToFahrenheit(float celsius)

Here you can find the source of celsiusToFahrenheit(float celsius)

Description

celsius To Fahrenheit

License

Open Source License

Declaration

public static float celsiusToFahrenheit(float celsius) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final float CELSIUS_TO_FAHRENHEIT_MULT = 9f / 5f;
    public static final float CELSIUS_TO_FARENHEIT_OFFSET = 32;

    public static float celsiusToFahrenheit(float celsius) {
        return (CELSIUS_TO_FAHRENHEIT_MULT * celsius) + CELSIUS_TO_FARENHEIT_OFFSET;
    }/*from   ww w.j  ava 2s .c  o m*/
}

Related

  1. celsiusToFahrenheit(Double celsius)
  2. celsiusToFahrenheit(Double celsius)
  3. celsiusToFahrenheit(double temperature)
  4. celsiusToFahrenheit(float value)
  5. toFahrenheit(double c)