Hi Karthick,
Two solutions is there
1. change the formula as per Balaji sir
2. In future,if end user added any alphanumeric value in that udf means,again crystal report will show error .If any other report is based on that udf means leave it. Otherwise delete that udf and create it again as numeric field .After that your current formula itself enough