-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Ranges_Range_1_Clamp
Andrew Koryavchenko edited this page Jun 17, 2018
·
1 revision
Ensures that the value fits into a range.
Namespace: CodeJam.Ranges
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public T Clamp(
T value
)
VB
Public Function Clamp (
value As T
) As T
F#
member Clamp :
value : 'T -> 'T
- value
- Type: T
The value to be adjusted.
Type: T
A new value that fits into a range specified
Exception | Condition |
---|---|
ArgumentException | The range is empty or any of its boundaries is exclusive. |