I assume that you already know how to expand the display with the shift registers and all.
The code changes should be about the same.
You will need to increases the size of the array which holds the digits (narray[4] to narray[6]).
You will need to add code to
{
narray[0]=int(z/100000); // hundred thousands value
z=z-(narray[0]*100000);
narray[1]=int(z/10000); // ten thousands value
z=z-(narray[1]*10000);
narray[2]=int(z/1000); // thousands value
z=z-(narray[2]*1000);
narray[3]=int(z/100); // hundreds value
z=z-(narray[3]*100);
narray[4]=int(z/10); // tens value
narray[5]=z-(narray[4]*10); // ones value
I might have coded it a different way
for (int i=numDigits-1; i>=0; i--) {
narray[i] = z%10;
z /= 10;
}
But that's just me.