public static int strdtoi(String decimal)
	{
		/* 
		 * The basic set up for the next three methods is to basically check the value at a given index
		 * convert that character to its ASCII representation and subtract the appropriate value so that
		 * it matches correctly. When going through again, the sum is multiplied by the base to represent
		 * a larger number.
		 */
		final int ASCII_CUTOFF = 48;
		final int BASE = 10;
		int sum = 0;
		for(int i = 0 ; i < decimal.length() ; i++){
			sum *= BASE;
			sum += ((int) decimal.charAt(i)) - ASCII_CUTOFF;//get the ascii value, then subtract the cutoff.
		}
		return sum;
	}