Java tutorial
//package com.java2s; //License from project: Apache License public class Main { public static float parseFloat(String v, float _default) { if (v == null || v.equals("")) return _default; return Float.parseFloat(v); } }