Packages

 

com.aspose.cad.xmp.types.derived

Class Rational

  • All Implemented Interfaces:
    IXmpType


    public class Rational
    extends XmpTypeBase

    Represents XMP Rational.

    • Constructor Detail

      • Rational

        public Rational(int numerator,
                        int denominator)

        Initializes a new instance of the Rational class.

        Parameters:
        numerator - The numerator.
        denominator - The denominator.
        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException - numerator;Numberator should be grater zero. or denominator;Denominator should be grater zero.
    • Method Detail

      • getNumerator

        public int getNumerator()

        Gets the numerator.

        Value: The numerator.
      • getDenominator

        public int getDenominator()

        Gets or sets the denominator.

        Value: The denominator.
      • setDenominator

        public void setDenominator(int value)

        Gets or sets the denominator.

        Value: The denominator.
      • getFloatValue

        public float getFloatValue()

        Gets the float value.

        Value: The float value.