case LexicalUnit.SAC_INTEGER : return new FloatValue( CSSPrimitiveValue.CSS_NUMBER, lu .getIntegerValue( ) );
float v = value.getFloatValue( CSSPrimitiveValue.CSS_PERCENTAGE ); if ( v < 0 ) { v = 0.0f; } else if ( v > 100 ) { v = 1.0f; } else { v = 255.0f * v / 100.0f; } return new FloatValue( CSSPrimitiveValue.CSS_NUMBER, v ); } else if ( value.getPrimitiveType( ) == CSSPrimitiveValue.CSS_NUMBER ) { float v = value.getFloatValue( CSSPrimitiveValue.CSS_NUMBER ); if ( v <= 0 ) { v = 0; } else if ( v >= 255 ) { v = 255; } return new FloatValue( CSSPrimitiveValue.CSS_NUMBER, v ); } return value;
	protected Value createColorComponent( LexicalUnit lu ) throws DOMException	{		switch ( lu.getLexicalUnitType( ) )		{			case LexicalUnit.SAC_INTEGER :				return new FloatValue( CSSPrimitiveValue.CSS_NUMBER, lu						.getIntegerValue( ) );			case LexicalUnit.SAC_REAL :				return new FloatValue( CSSPrimitiveValue.CSS_NUMBER, lu						.getFloatValue( ) );			case LexicalUnit.SAC_PERCENTAGE :				return new FloatValue( CSSPrimitiveValue.CSS_PERCENTAGE, lu						.getFloatValue( ) );		}		throw createInvalidRGBComponentUnitDOMException( lu				.getLexicalUnitType( ) );	}