private void simplifyRationalNumber()
	{
		int lcd = Math.abs(getLargestCommonDivisor());

		// simplify values and redistribute negative sign if needed
		if (numerator == 0 && denominator != 0)
		{
			numerator = 0;
			denominator = 1;
		}
		else if ((numerator / lcd) < 0 && (denominator / lcd) < 0 || (numerator / lcd) > 0 && (denominator / lcd) < 0)
		{
			numerator = -numerator / lcd;
			denominator = -denominator / lcd;
		}
		else
		{
			numerator = numerator / lcd;
			denominator = denominator / lcd;
		}
	}