Converting exponents to fractional form