Results with Rounding
Creates a structured result with a numeric value rounded according to specified digits,
an optional tolerance, and a rounding function.
By default, rounding is performed using an internal function round2()
, which is similar
to exams::round2()
, but users should not call it directly. You can also supply a
custom rounding function via the FUN
argument.
If digits
is a character, the following abbreviations are recognized:
"integer"
digits = 0
"%"
digits = 2
"probability"
digits = 4
Partial matching of these names is allowed.