Click or drag to resize

Rational Structure

A fractional value used to represent certain TIFF and EXIF tags.

Namespace:  Atalasoft.Imaging.Metadata
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
[SerializableAttribute]
public struct Rational

The Rational type exposes the following members.

Constructors
  NameDescription
Public methodRational
Creates a new instance of Rational.
Top
Properties
  NameDescription
Public propertyDenominator
Gets the denominator of the fraction
Public propertyStatic memberEmpty
Returns an 'Empty' Rational value of 0/1.
Public propertyNumerator
Gets the numerator of the fraction.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object, is equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodStatic memberEquals(Rational, Rational)
Equalses the specified rat1.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberParse
Parses a string in the form of numerator/denominator to a Rational value.
Public methodToString
Returns a string representation of the fraction (numerator/denominator)
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two Rational objects for equality.
Public operatorStatic memberInequality
Compares two Rational objects for inequality.
Top
See Also