clip

Clip value by it's value range.

static pure nothrow @safe
T
clip
(
T
V
)
(
V v
)
if (
isNumeric!V &&
isNumeric!T
)

Parameters

v
Type: V

input value, of the input type

Return Value

Type: T

Clipped value of the output type.

Meta