countDecDigits: Calculate number of digits after a decimal place

Description Usage Arguments Value Examples

View source: R/countDecDigits.r

Description

This function calculates the number of digits after a decimal place. Note that trailing zeros wil likely be ignored.

Usage

1

Arguments

x

Numeric or numeric list.

Value

Integer.

Examples

1
countDecDigits(c(1, 1.1, 1.12, 1.123, 1.1234, -1, 0, 10.0000, 10.0010))

adamlilith/omnibus documentation built on Nov. 21, 2018, 11:01 a.m.