Skip to content

Commit 60c544a

Browse files
committed
Implement IMinMaxValue<BigReal>
1 parent 460fc85 commit 60c544a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

BigReal/BigReal.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace ExtendedNumerics;
1212
/// </summary>
1313
[Serializable]
1414
public readonly partial struct BigReal : IConvertible, IComparable, IComparable<BigReal>, IEquatable<BigReal>, INumber<BigReal>, IFloatingPoint<BigReal>, IFloatingPointConstants<BigReal>,
15-
IPowerFunctions<BigReal>, IRootFunctions<BigReal>, ILogarithmicFunctions<BigReal>
15+
IPowerFunctions<BigReal>, IRootFunctions<BigReal>, ILogarithmicFunctions<BigReal>, IMinMaxValue<BigReal>
1616
{
1717
/// <summary>
1818
/// The dividend (top of the fraction).
@@ -65,6 +65,15 @@ namespace ExtendedNumerics;
6565
/// </summary>
6666
public static BigReal MultiplicativeIdentity => One;
6767

68+
/// <summary>
69+
/// The maximum value of a <see cref="BigReal"/>. This value is positive infinity.
70+
/// </summary>
71+
public static BigReal MaxValue => PositiveInfinity;
72+
/// <summary>
73+
/// The minimum value of a <see cref="BigReal"/>. This value is negative infinity.
74+
/// </summary>
75+
public static BigReal MinValue => NegativeInfinity;
76+
6877
/// <summary>
6978
/// Returns:
7079
/// <list type="bullet">

0 commit comments

Comments
 (0)