get_precision: Determine the precision of a number

View source: R/get_precision.R

get_precisionR Documentation

Determine the precision of a number

Description

Determine the precision of a number, as the number of digits past the decimal point.

Usage

get_precision(x, ...)

Arguments

x

A numeric vector

...

Ignore this

Details

If the number is expressed in scientific notation, we take the number of digits

Value

A vector of integers, with the number of digits (to the last non-zero digit) past the decimal point.


broman documentation built on July 8, 2022, 5:07 p.m.

Related to get_precision in broman...