public class Rational extends XmpTypeBase
Represents XMP Rational.
| Constructor and Description |
|---|
Rational(int numerator,
int denominator)
Initializes a new instance of the
Rational class. |
| Modifier and Type | Method and Description |
|---|---|
int |
getDenominator()
Gets or sets the denominator.
|
float |
getFloatValue()
Gets the float value.
|
int |
getNumerator()
Gets the numerator.
|
String |
getXmpRepresentation()
Gets thestring contained value in XMP format.
|
void |
setDenominator(int value)
Gets or sets the denominator.
|
public Rational(int numerator,
int denominator)
Initializes a new instance of the Rational class.
numerator - The numerator.denominator - The denominator.com.aspose.ms.System.ArgumentOutOfRangeException - numerator;Numberator should be grater zero.
or
denominator;Denominator should be grater zero.public int getNumerator()
Gets the numerator.
Value: The numerator.public int getDenominator()
Gets or sets the denominator.
public void setDenominator(int value)
Gets or sets the denominator.
value - The denominator.public float getFloatValue()
Gets the float value.
public String getXmpRepresentation()
Gets thestring contained value in XMP format.
getXmpRepresentation in interface IXmpTypegetXmpRepresentation in class XmpTypeBaseCopyright (c) 2008-2022 Aspose Pty Ltd. All Rights Reserved.