Does C# have an Unsigned Double?
As pointed out by Anders Forsgren, there is no unsigned doubles in the IEEE spec (and therefore not in C#). You can always get the positive value by calling Math.Abs() and you could wrap a double in a struct and enforce the constraint there: public struct PositiveDouble { private double _value; public PositiveDouble() {} public … Read more