{
final CSSNumericValue nval;
if (value instanceof CSSStringValue)
{
// I shouldn't do this, but ..
final CSSStringValue strVal = (CSSStringValue) value;
nval = FunctionUtilities.parseNumberValue(strVal.getValue());
}
else if (value instanceof CSSNumericValue == false)
{
throw new FunctionEvaluationException("Expected a number");
}