r - How to round a number and make it show zeros? - Stack ...
> a = 14.1234 > round(a, digits=2) > a > 14.12 However if the number has zeros as the first two decimal digits, R suppresses zeros in display: > a = 14.0034 > round(a, digits=2) > a > 14 How can we make R to show first decimal digits even when they are zeros? I especially need this in plots.
Read More