Description Usage Arguments Value

Calculate the number of significant figures in an integer or floating point number. NOTE: this function IS NOT vectorized. To run on a vector of numbers, use `sapply(x, sigDigs)`

. Assumes that consecutive trailing 0s of integers and leading 0s of decimals are not significant. E.g. `sigDigs(10) == 1`

.

1 | ```
sig_digs(n)
``` |

`n` |
numeric, the number for which to determine significant figures. |

integer, the number of significant figures

mjdufort/miscHelpers documentation built on Sept. 24, 2018, 7:09 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.