returns floating point when beg+end is an odd number.