round

function, since version 1.0.0
categories: numbers

round(value, precision)

Rounds numeric value to given precision

parameters

return type

number

examples

round(0.12712, 1)        => 0.1
round(0.12712, 2)        => 0.13
round(100.122, 0)        => 100

Related functions:

Update your privacy settings