Change using float to rational