protected static double[] getValuesFromObjects( Object[] pthings ) throws NumberFormatException
	{
		double[] returnDbl = new double[pthings.length];
		for( int i = 0; i < pthings.length; i++ )
		{

			// Object o = pthings[i].getValue();
			Object o = pthings[i];

			if( o == null )
			{    // NO!! "" is NOT "0", blank is, but not a zero length string.  Causes calc errors, need to handle diff somehow20081103 KSC: don't error out if "" */
				returnDbl[i] = 0.0;
			}
			else if( o instanceof Double )
			{
				returnDbl[i] = (Double) o;
			}
			else if( o instanceof Integer )
			{
				returnDbl[i] = (double) (Integer) o;
			}
			else if( o instanceof Boolean )
			{    // Excel converts booleans to numbers in calculations 20090129 KSC
				returnDbl[i] = ((Boolean) o ? 1.0 : 0.0);
			}
			else if( o instanceof PtgBool )
			{
				returnDbl[i] = ((Boolean) (((PtgBool) o).getValue()) ? 1.0 : 0.0);
			}
			else if( o instanceof PtgErr )
			{
				// ?
			}
			else
			{
				String s = o.toString();
				Double d = new Double( s );
				returnDbl[i] = d;
			}
		}
		return returnDbl;
	}