Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OfficeRational

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
1f76172c94d1 with working tree changes
Base
ValueType
Modifiers
sealed

An exact unsigned rational number used by Exif.

Inheritance

  • ValueType
  • OfficeRational

Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 2

Constructors

public OfficeRational(uint numerator, uint denominator) #

Creates a rational, retaining a zero denominator when present in source metadata.

Parameters

numerator uint required
denominator uint required

Methods

public double ToDouble() #

Returns the quotient, or NaN for a zero denominator.

Returns

double
public override string ToString() #

Returns the fully qualified type name of this instance.

Returns

string The fully qualified type name.

Properties

public uint Numerator { get; } #

The numerator.

public uint Denominator { get; } #

The denominator.