return value.getFloatValue(unitType);
return value.getFloatValue();
	public static float convertFloatValue(short unitType, FloatValue value) {		switch (unitType) {		case CSSPrimitiveValue.CSS_NUMBER:		case CSSPrimitiveValue.CSS_PERCENTAGE:		case CSSPrimitiveValue.CSS_EMS:		case CSSPrimitiveValue.CSS_EXS:		case CSSPrimitiveValue.CSS_DIMENSION:		case CSSPrimitiveValue.CSS_PX:			if (value.getPrimitiveType() == unitType) {				return value.getFloatValue(unitType);			}			break;		case CSSPrimitiveValue.CSS_CM:			return toCentimeters(unitType, value.getFloatValue());		case CSSPrimitiveValue.CSS_MM:			return toMillimeters(unitType, value.getFloatValue());		case CSSPrimitiveValue.CSS_IN:			return toInches(unitType, value.getFloatValue());		case CSSPrimitiveValue.CSS_PT:			return toPoints(unitType, value.getFloatValue());		case CSSPrimitiveValue.CSS_PC:			return toPicas(unitType, value.getFloatValue());		case CSSPrimitiveValue.CSS_DEG:			return toDegrees(unitType, value.getFloatValue());		case CSSPrimitiveValue.CSS_RAD:			return toRadians(unitType, value.getFloatValue());		case CSSPrimitiveValue.CSS_GRAD:			return toGradians(unitType, value.getFloatValue());		case CSSPrimitiveValue.CSS_MS:			return toMilliseconds(unitType, value.getFloatValue());		case CSSPrimitiveValue.CSS_S:			return toSeconds(unitType, value.getFloatValue());		case CSSPrimitiveValue.CSS_HZ:			return toHertz(unitType, value.getFloatValue());		case CSSPrimitiveValue.CSS_KHZ:			return tokHertz(unitType, value.getFloatValue());		}		throw new DOMException(DOMException.INVALID_ACCESS_ERR, "");	}