//Changes made:
/*
 * Changed decimalvalue from float to double - more workable
 * Made a check that startingPowerOfTwo is LESS than zero.
 * Taken away artbitary -1 in maxpoweroftwo = poweroftwo; in step 1
 * Added + 1 in int[] binaryIntArray = new int[HighestPowerOfTwo -
maxpoweroftwo + 1];
 * Added if (maxpoweroftwo > 0) maxpoweroftwo = 0; before "Create a
temporary int array for binary digits in order"
 * Changed > to >=
 */
 
 Based on C# test