   //display refresh timer loop, cycles through each digit at the interval of refreshInterval
   if (currentRefresh - previousRefresh > refreshInterval) {
     previousRefresh = currentRefresh;
+    
+    refreshLoop++;
 
     if (refreshLoop == 4)
       refreshLoop = 0;
 
     pickDigit(refreshLoop);
     displayNumber();
-    refreshLoop++;
   }
 
   //testCaseAllNum();
-  splitNumber(888);
+  splitNumber(.1234);
 }
 
 void clearLEDs() {

    whole = whole % 100;
    splitLeft[1] = whole / 10;
    splitLeft[0] = whole % 10;
    digitsLeft = 0;
  }

  int decimalToWhole = decimal * (10^digitsLeft);

  //split decimal number portion next (right of decimal)
  //if decimalToWhole is 0-9
  if (decimalToWhole < 10) {

    splitRight[0] = decimalToWhole % 10;
  }

  for (int i=0; i<4; i++) {
    if (splitRight[i]!=-1) {
      displayNum[i] = numbers[splitRight[i]];
      index++;
    }
  }

  for (int j=0; j<4; j++) {
    if (splitLeft[j]!=-1) {
      displayNum[j+index] = numbers[splitLeft[j]];
    }
  }
*/
}


