XmpRational constructor

init

Initializes a new instance of the XmpBoolean class.

def __init__(self, value):
    ...
Parameter Type Description
value str The value.

Exceptions

Exception Description
ArgumentNullException Value could not be null.
ArgumentException Invalid string value.

init

Initializes a new instance of the XmpRational class.

def __init__(self, numerator, denominator):
    ...
Parameter Type Description
numerator int The numerator.
denominator int The denominator.

See Also