Java Celsius to Fahrenheit celsiusToFahrenheit(float value)

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

Description

celsius To Fahrenheit

License

Open Source License

Declaration

public static float celsiusToFahrenheit(float value) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2018 Arrow Electronics, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Apache License 2.0
 * which accompanies this distribution, and is available at
 * http://apache.org/licenses/LICENSE-2.0
 *
 * Contributors:/*from  w  w  w .ja v a 2 s . c  o  m*/
 *     Arrow Electronics, Inc.
 *******************************************************************************/

public class Main {
    public static float celsiusToFahrenheit(float value) {
        return value * 9.0f / 5.0f + 32.0f;
    }

    public static double celsiusToFahrenheit(double value) {
        return value * 9.0 / 5.0 + 32.0;
    }
}

Related

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