View source: R/utils-numeric.R
nonZeroRound | R Documentation |
This function will recursively attempt to round a value to greater and greater precision until it results in a non-zero value. One consequence of this is that the precision of the output value may not be exactly what was requested.
nonZeroRound(x, digits)
x |
Numeric value to round |
digits |
Number indicating the desired precision |
number rounded as nearly to the requested precision as possible without returning zero.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.