Skip to contents

This function calculates the number of decimal places in a numeric value. It returns the number of digits to the right of the decimal point for numeric data.

Usage

TADA_DecimalPlaces(x)

Arguments

x

A numeric value or vector from the TADA profile.

Value

An integer representing the number of decimal places in the numeric value. If the input is an integer or a numeric value with no decimal places, the function returns 0.