When you cast the dec to char, it has a decimal point. That's why the substring worked.
Attachments
Library
Quick Reference
Archives
Sample Index
2002 Indexes