Convert string of variable length to floats.

Hey PaulS, I count 7 characters here - "nn.nn"

Yeah, yeah. I don't know why I was having trouble counting.

But the array should definitely be 8 characters long so the OP can null terminate the string.

Agreed. And OP should read the correct number of characters AND null terminate the string.

At the moment my problem is fix the drawpixel function to prevent it from being drawn lines ranging from 0 hour/6 as shown in the image below:

You are building a house on a crooked foundation, and you can't the shingles on the roof to line up properly. I think it is obvious what you need to do. Fix the damned foundation first.

Come on back AFTER you have that done.