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