added conversion decimal to rational number