Common Lisp - 116 103102 characters
(defun f(m)(labels((l(n)(if(> n 0)(+(expt(mod n 10)(ceiling(log m 10)))(l(floor n 10)))0)))(= m(l m))))
Formatted:
(defun f(m)
(labels((l(n)
(if(> n 0)
(+(expt(mod n 10)(ceiling(log m 10)))
(l(floor n 10)))
0)))
(= m(l m)m)))