Round numeric values to a given number of decimal places, with decimal
ties (for example, 1.25 at digits = 1) rounded half away from zero.
This differs from base::round(), which uses round-to-even for ties.
Values that round to zero, including small negative values, return positive
zero so formatted output does not display negative zero.
Value
A numeric object with the same dimensions, dimension names, and
names as x. A data frame input returns a data frame.
Details
To account for floating-point representation, values within
sqrt(.Machine$double.eps) below a tie at the requested precision are
treated as ties. The implementation is adapted from roundSAS() in
pharmaverse/tidytlg.
