Here you can find the source of toFloat(final Object valueRep)
public static Float toFloat(final Object valueRep) throws NumberFormatException
//package com.java2s; //License from project: Open Source License public class Main { public static Float toFloat(final Object valueRep) throws NumberFormatException { return Float.parseFloat(String.valueOf(valueRep)); }/*w w w. j av a 2 s .c om*/ }