Table of Contents

Struct Ratio

Namespace
Concordium.Sdk.Types
Assembly
Concordium.Sdk.dll

A ratio between two ulong integers.

It should be safe to assume the denominator is not zero and that numerator and denominator are coprime.

public readonly record struct Ratio : IEquatable<Ratio>
Implements
Inherited Members

Constructors

Ratio(ulong, ulong)

A ratio between two ulong integers.

It should be safe to assume the denominator is not zero and that numerator and denominator are coprime.

public Ratio(ulong Numerator, ulong Denominator)

Parameters

Numerator ulong
Denominator ulong

Properties

Denominator

public ulong Denominator { get; init; }

Property Value

ulong

Numerator

public ulong Numerator { get; init; }

Property Value

ulong