Appreciate your inputs on how to make this code more efficient. I have inherited this code from someone who has retired. I will replace the float data types with int or bigint, and also will find a way to eliminate the need for calling these functions.
Thanks again,
Seyed