## Rational class

Represents XMP Rational.

```csharp
public class Rational : XmpTypeBase
```

## Constructors

| Name | Description |
| --- | --- |
| [Rational](rational/)(int, int) | Initializes a new instance of the `Rational` class. |

## Properties

| Name | Description |
| --- | --- |
| [Denominator](../../aspose.imaging.xmp.types.derived/rational/denominator/) { get; set; } | Gets or sets the denominator. |
| [FloatValue](../../aspose.imaging.xmp.types.derived/rational/floatvalue/) { get; } | Gets the float value. |
| [Numerator](../../aspose.imaging.xmp.types.derived/rational/numerator/) { get; } | Gets the numerator. |

## Methods

| Name | Description |
| --- | --- |
| virtual [Clone](../../aspose.imaging.xmp.types/xmptypebase/clone/)() | Clones this instance. |
| override [GetXmpRepresentation](../../aspose.imaging.xmp.types.derived/rational/getxmprepresentation/)() | Gets thestring contained value in XMP format. |
| override [ToString](../../aspose.imaging.xmp.types/xmptypebase/tostring/)() | Gets this XMP data as string. |

### See Also

* class [XmpTypeBase](../../aspose.imaging.xmp.types/xmptypebase/)
* namespace [Aspose.Imaging.Xmp.Types.Derived](../../aspose.imaging.xmp.types.derived/)
* assembly [Aspose.Imaging](../../)


