The FIURational structure represents a fraction via two UInt32
instances which are interpreted as numerator and denominator.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
[SerializableAttribute] public struct FIURational : IConvertible, IComparable, IFormattable, IComparable<FIURational>, IEquatable<FIURational> |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Structure FIURational _ Implements IConvertible, IComparable, IFormattable, IComparable(Of FIURational), _ IEquatable(Of FIURational) |
Visual C++ |
---|
[SerializableAttribute] public value class FIURational : IConvertible, IComparable, IFormattable, IComparable<FIURational>, IEquatable<FIURational> |
Remarks
The structure tries to approximate the value of FIURational(Decimal)
when creating a new instance by using a better algorithm than FreeImage does.
The structure implements the following operators:
+, ++, --, ==, != , >, >==, <, <== and ~ (which switches nominator and denomiator).
The structure can be converted into all .NET standard types either implicit or
explicit.