
## set_float_value {#int-float}

A method to set the float value with a specified unit. If the property attached with this value can not accept the specified unit or the float value, the value will be unchanged and a DOMException will be raised.



```python
def set_float_value(self, unit_type, float_value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| unit_type | int | Type of the unit. |
| float_value | float | The float value. |



### See Also
* module [`aspose.svg.dom.css`](../../)
* class [`CSSPrimitiveValue`](/svg/python-net/aspose.svg.dom.css/cssprimitivevalue)
