v0.13.6

math.clamp

functionimplementedavailable in: camelot

Clamps a value to the inclusive range defined by the minimum and maximum values.

signaturewowlua
function math.clamp(    value: number,    minimum: number,    maximum: number): number

Parameters

nametypedescription
valuenumberThe value to clamp.
minimumnumberThe inclusive lower bound.
maximumnumberThe inclusive upper bound.

Returns

clampedValue · number · The clamped value.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (LuaMathExtensions system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.