Skip to contents

stm_digits() determines the number of decimal digits to be used for computations, providing a default value if no valid input is supplied.

Usage

stm_digits(digits = 14)

Arguments

digits

An integer specifying the number of decimal digits. Default is 14.

Value

An integer representing the number of decimal digits to use.

Details

This function checks if the provided digits parameter is a valid integer. If the input is invalid or NULL, the function defaults to 14 decimal digits.

Examples

stm_digits(10)
#> [1] 10

stm_digits(NULL)
#> [1] 14

stm_digits("abc")
#> [1] 14

stm_digits()
#> [1] 14