How to combine 2 numbers into a 7 digit number seperated by a point?

For that to work, buffer[ ] should have 9 elements.