isDecimal {maDB} | R Documentation |
isDecimal
This function determines if a number is decimal, or if it has no decimal places.
isDecimal(x)
x |
the number or a list of numbers. |
Sometimes it is useful to know if a number has decimal places, or if it is cardinal. This funciton can be used on single numbers or on a vector of numbers to solfe this problem.
Johannes Rainer
isDecimal(2) isDecimal(2.1) isDecimal(c(1,2.3,2,3.4))