Hi All,
I Want to find the last digit of a 9 digit number for which I am using MOD operator but when I am giving the below condition it throws an error saying opeator MOD is not defined for Generic and Integer .
a= AccNum MOD 10
Nothing is wrong with generic type . Only thing is you need to specifically change it to integer when working with MOD operator. I know, you can always argue generic type should work with any data type as it automatically adjust itself. However, that’s not really the case with MOD
If my fix worked, please also mark my answer as the solution too