Method Clamp
Clamp(BigRational, BigRational, BigRational)
Clamps a value to an inclusive minimum and maximum value.
Declaration
public static BigRational Clamp(BigRational value, BigRational min, BigRational max)
Parameters
| Type | Name | Description |
|---|---|---|
| BigRational | value | The value to clamp. |
| BigRational | min | The inclusive minimum to which |
| BigRational | max | The inclusive maximum to which |
Returns
| Type | Description |
|---|---|
| BigRational | The result of clamping |
Remarks
Part of the new NET 7 number type system see System.Numerics.INumber`1.Clamp(`0,`0,`0).
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException |
|