For a value like 0.999942062, I would like to show this value as 0.99 without rounding to 1. For that, I tried the following functions:
x <- 0.999942062
round(x, 2)
formatC(x, 2)
sprintf(x, fmt = '%#.2f')
They all result in 1. Do you know how to print it like 0.99?