powered by
Round to the nearest number with the number of digits as indicated. NOTE: Unlike the base round function it rounds a 5 to the higher number, rather than the nearest even number.
round
round2(x, digits = 0)
Number rounded to the number of digits indicated
digits
number to be rounded
number of digits to round to
round2(2.5)
Run the code above in your browser using DataLab