I have numeric
's like this one:
a <- -1.542045
And I want to round them down (or round up the abs
) to 2 digits after the decimal point.
signif(a,3)
will round it down and give me 1.54 as a result but for this example the result I want is -1.55
.
Any idea?