math.round
Rounds half away from zero. With precision, rounds to that many decimals and returns float.
math.round(x: int/float) -> int
math.round(x: int/float, precision: int) -> float
Parameters
xint/float: A number; na gives na.precisionint: Decimals to keep (2 rounds to hundredths); a negative value rounds to tens, hundreds, ... With it the result is a float.
Example
math.round(close, 2)