Here you can find the source of toDouble(final Object valueRep)
public static Double toDouble(final Object valueRep) throws NumberFormatException
//package com.java2s; //License from project: Open Source License public class Main { public static Double toDouble(final Object valueRep) throws NumberFormatException { return Double.parseDouble(String.valueOf(valueRep)); }// ww w . j a va 2 s . co m }