Learn R Programming

hhmR (version 0.0.1)

decimalplaces: decimalplaces

Description

Tests the number of non-zero decimal places within a number.

Usage

decimalplaces(x)

Value

A single number, indicating the number of non-zero decimal places in `x`.

Arguments

x

The number for the number of decimal places is to be measured.

Examples

Run this code
decimalplaces(23.43234525)
decimalplaces(334.3410000000000000)
decimalplaces(2.000)

Run the code above in your browser using DataLab