---
title: "XmpReal constructor"
url: "https://reference.aspose.com/cad/python-net/aspose.cad.xmp.types.basic/xmpreal/__init__/"
product: "Aspose.CAD for Python via .NET API References"
---


## __init__ {#float}

Initializes a new instance of the [`XmpReal`](/cad/python-net/aspose.cad.xmp.types.basic/xmpreal) class.



```python
def __init__(self, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| value | float | Float value. |


## __init__ {#str}

Initializes a new instance of the [`XmpReal`](/cad/python-net/aspose.cad.xmp.types.basic/xmpreal) class.



```python
def __init__(self, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| value | str | The value. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentNullException | value is null. |
| ArgumentException | Invalid value. Should be float. |





### See Also
* module [`aspose.cad.xmp.types.basic`](../../)
* class [`XmpReal`](/cad/python-net/aspose.cad.xmp.types.basic/xmpreal)
