Learn R Programming

quickcode (version 1.0.6)

ndecimal: Count the number of decimal places

Description

Count the number of decimal places

Usage

ndecimal(num)

Arguments

num

a numeric value

Examples

Run this code
#example 1
ndecimal(9.000322)

#example 2
ndecimal(34)

#example 3
ndecimal(45.)

Run the code above in your browser using DataLab