Here you can find the source of toFloat(Float num, float defaultValue)
public static float toFloat(Float num, float defaultValue)
//package com.java2s; //License from project: Apache License public class Main { public static float toFloat(Float num, float defaultValue) { if (num == null) { return defaultValue; } else {//from w ww. j ava2 s .c om return num.floatValue(); } } }