## CSSPrimitiveValue.GetFloatValue method

This method is used to get a float value in a specified unit. If this CSS value doesn't contain a float value or can't be converted into the specified unit, a DOMException is raised.

```csharp
public abstract float GetFloatValue(ushort unitType)
```

| Parameter | Type | Description |
| --- | --- | --- |
| unitType | UInt16 | Type of the unit. |

### Return Value

Returns value

### See Also

* class [CSSPrimitiveValue](../)
* namespace [Aspose.Html.Dom.Css](../../../aspose.html.dom.css/)
* assembly [Aspose.HTML](../../../)
