Here you can find the source of celsiusToFahrenheit(float value)
public static float celsiusToFahrenheit(float value)
//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; } }