
**Summary:** Represents XMP Rational.

**Module:** [aspose.psd.xmp.types.derived](/psd/python-net/aspose.psd.xmp.types.derived/)

**Full Name:** aspose.psd.xmp.types.derived.Rational

**Inheritance:** IXmpType, XmpTypeBase

**Aspose.PSD Version:** 24.12.0

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [Rational(numerator, denominator)](#Rational_numerator_denominator_1) | Initializes a new instance of the [Rational](/psd/python-net/aspose.psd.xmp.types.derived/rational/) class. |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| denominator | int | r/w | Gets or sets the denominator. |
| float_value | float | r | Gets the float value. |
| numerator | int | r | Gets the numerator. |
## **Methods**
| **Name** | **Description** |
| :- | :- |
| [get_xmp_representation()](#get_xmp_representation__1) | Gets thestring contained value in XMP format. |


### Constructor: Rational(numerator, denominator) {#Rational_numerator_denominator_1}


```
 Rational(numerator, denominator) 
```

Initializes a new instance of the [Rational](/psd/python-net/aspose.psd.xmp.types.derived/rational/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| numerator | int | The numerator. |
| denominator | int | The denominator. |

### Method: get_xmp_representation() {#get_xmp_representation__1}


```
 get_xmp_representation() 
```

Gets thestring contained value in XMP format.

**Returns**

| Type | Description |
| :- | :- |
| string | Returns the string contained value in XMP format. |


