Java tutorial
//package com.java2s; public class Main { public static float parseFloat(String value) { float f = 0; try { f = Float.parseFloat(value); } catch (Exception e) { // TODO: handle exception } return f; } }