IntRangeGetLowBound Method

Return the closest value lower than or equal to the specified value to find.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static int GetLowBound(
	int[] values,
	int find
)

Parameters

values  Int32
Array of integers to search.
find  Int32
Value to find.

Return Value

Int32
The closest value lower than or equal to the specified find value, if found. Otherwise, -1.

Remarks

This method assumes that all members of the values array are sequential in value, but not necessarily incremental. For example, 1, 3, 5, but not 1, 5, 3.

See Also