Here you can find the source of cToF(Double deg_c)
public static Double cToF(Double deg_c)
//package com.java2s; import java.text.DecimalFormat; public class Main { private static DecimalFormat df2 = new DecimalFormat("0.00"); public static String cToF(String deg_c) { double deg = Double.parseDouble(deg_c); return df2.format(deg * (9 / 5) + 32); }// w w w . ja v a 2 s . c om public static Double cToF(Double deg_c) { return (deg_c * (9 / 5) + 32); } }