handle integer and decimal attribute values

http://manage.dimagi.com/default.asp?139606