I want to create a structure Degrees
for a GPX library. In the XSD for GPX (GPX 1.1 Schema) degreesType
is defined as minInclusive = 0 and maxExclusive = 360. The structure now shall have two public static fields MinValue = 0
and MaxValue = x
:
public struct Degrees : IFormattable, IComparable, IComparable<Degrees>, IEquatable<Degrees>
{
private decimal value;
public static Degrees MinValue = 0M;
//public static Degrees MaxValue = x;
}
What is the best way to specify the value of x? 360D-1 would be to inaccurate, 360D-0.001 would be an assumption that no one ever wants a better accuracy than 1/1000 degree.