You need to understand integer arithmetic before writing UDF.
e.g. ( 1/5) * 100 = 0
Attachments
Library
Quick Reference
Archives
Sample Index
2014 Indexes