$x->digit($n); # return the nth digit, counting from right $x->digit(-$n); # return the nth digit, counting from left