We assume that trailing zeros left of the decimal point are significant digits while trailing zeros right of the decimal point are not significant digits

num.sig.digits(x)

Arguments

x

a numeric vector