Extract contents of buffer to individual variables

I have the following function...

void adcWorker() {

  volts = analogRead(voltSense);

  float voltage = (volts) * (5.0 / 1023.0);   //FIXME: Scale properly to suit 1.25 - 6v input


  char strBuf[20];

  dtostrf(voltage, 10, 3, strBuf);

  size_t n = sizeof(strBuf) / sizeof(strBuf[0]);


 // for (size_t i = 0; i < n; i++) {
 //   Serial.println(strBuf[i]);


 // }


 for (size_t i = 0; i < n; i++) 
  {
    if ( (strBuf[i] >= '0' && strBuf[i] <= '9') || strBuf[i] == '.')
      {
        Serial.println(strBuf[i]);

      }

 
   }  


}

It's showing me some values in a buffer like...

0
.
2
1
0

How can I store those numbers to individual variables for example
0 = x
. = y
2 = z
1 = a
0 = b

etc

(deleted)