Frac: Fractional Part and Maximal Digits of a Numeric Value
Description
Frac() returns the fractional part of a numeric value.
MaxDigits() return the number of digits in x. Ndec() returns the number of decimals. Prec() returns the precision of a number x.
Usage
Frac(x, dpwr = NA)
MaxDigits(x)
Ndec(x)
Prec(x)
Arguments
x
the numeric value (or a vector of numerics), whose fractional part is to be calculated.
dpwr
power of 10 for a factor z, the fractional part will be multiplied with. The result will be returned rounded to integer. Defaults to NA and will then be ignored.