v0.13.6

math.round

functionimplementedavailable in: camelot

Rounds a value to the specified number of decimal places, with halfway values rounded away from zero.

signaturewowlua
function math.round(    value: number,    decimalPlaces: number): number

Parameters

nametypedescription
valuenumberThe value to round.
decimalPlacesnumberThe number of decimal places to preserve. Negative values round to positions left of the decimal point. Default: 0.

Returns

roundedValue · number · The rounded 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 ↗.