Here you can find the source of cToF(String deg_c)
public static String cToF(String 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); }/*from w ww. j ava 2s . com*/ public static Double cToF(Double deg_c) { return (deg_c * (9 / 5) + 32); } }