Java tutorial
//package com.java2s; public class Main { public static String fen2yuan(String fen) { float temp = Float.parseFloat(fen); String tempStr = (temp / 100) + ""; return tempStr; } public static String fen2yuan(float fen) { String tempStr = (fen / 100) + ""; return tempStr; } }