---
title: "Class Rational"
url: "https://reference.aspose.com/psd/net/aspose.psd.xmp.types.derived/rational/"
product: "Aspose.PSD for .NET API Reference"
description: "Aspose.PSD.Xmp.Types.Derived.Rational class. Represents XMP Rational"
---

{{< psd/tize >}}
## 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.psd.xmp.types.derived/rational/denominator/) { get; set; } | Gets or sets the denominator. |
| [FloatValue](../../aspose.psd.xmp.types.derived/rational/floatvalue/) { get; } | Gets the float value. |
| [Numerator](../../aspose.psd.xmp.types.derived/rational/numerator/) { get; } | Gets the numerator. |

## Methods

| Name | Description |
| --- | --- |
| override [GetXmpRepresentation](../../aspose.psd.xmp.types.derived/rational/getxmprepresentation/)() | Gets thestring contained value in XMP format. |

### See Also

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


