decimal_count: Function to count the number of digits on the right of a...

View source: R/decimal_count.R

decimal_countR Documentation

Function to count the number of digits on the right of a decimal point ( sometimes called the mantissa).

Description

Function to count the number of digits on the right of a decimal point ( sometimes called the mantissa).

Usage

decimal_count(value)

Arguments

value

A numeric vector.

Author(s)

Stuart K. Grange

See Also

http://stackoverflow.com/questions/5173692/how-to-return-number-of-decimal-places-in-r

Examples

## Not run: 

decimal_count(5.89)

decimal_count(c(5.89, 2, 56.454545, 5.1))


## End(Not run)


skgrange/threadr documentation built on April 15, 2024, 9:35 p.m.