length

The number of decimal digits in this Int.

Extension property on Int. Returns 1 for the value 0.


The number of decimal digits in this Long, ignoring any minus sign.

Extension property on Long. Returns 1 for the value 0. Digits are counted with integer division, because log10 of a large Long converted to Double rounds up near powers of ten.