modified to add modulus support to fractional types float,double,decimal
corrected the testcase