Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getDec

Return the number of decimal places.


Description

Return the number of decimal places.

Usage

getDec(x)

Arguments

x

A numeric vector.

Value

Number of decimals

Author(s)

Based on http://stackoverflow.com/questions/5173692/how-to-return-number-of-decimal-places-in-r, but improved

See Also

Examples

getDec(c(10,10.432, 11.01, .000001))

plotfunctions

Various Functions to Facilitate Visualization of Data and Analysis

v1.4
GPL (>= 2)
Authors
Jacolien van Rij [aut, cre]
Initial release
2020-04-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.