Using old industrial numeric control codes, our numbers were like so,
Where the machine could run from 0.000" to 200.000" the decimals were dropped and leading zeros used instead because of advantages.
So 15.430" would be 01543
You don't need a decimal point with that. You know that the first character is 100's without waiting for the decimal to be read.
The machines ran on punched tapes with each digit a row of holes -- it is a version of serial data.
This scheme is easy for a program to read quickly, much simpler, easier and faster than buffering a string like "12.345" and running a function to interpret that.
So we had codes like
X00125Y028G01
to set the machine to coordinate X 1.25" Y 28.0" and punch the hole.
That technology goes back to 19th century card looms. It doesn't get simpler. Coding for that is matching simple once you get the "buffer then parse then convert" paradigm they teach in books and schools out of your head.
Nick Gammon's serial input tutorial covers the basic Arduino sketch to read that kind of encoding in his State Machine example. I wonder if Nick worked in production?
State Machine
Another way of processing incoming data, without blocking, is to set up a "state machine". Effectively this means looking at each byte in the input stream, and handling it depending on the current state.
As an example, say you had this coming into the serial port:
R4500S80G3
Where Rnnn is RPM, Snnnn is speed, and Gnnnn is the gear setting.
The state machine below switches state when it gets a letter "R", "S" or "G". Otherwise it processes incoming digits by multiplying the previous result by 10, and adding in the new one.
When switching states, if first handles the previous state. So for example, after getting R4500 when the "S" arrives, we call the ProcessRPM function, passing it 4500.
This has the advantage of handling long messages without even needing any buffer, thus saving RAM. You can also process message as soon as the state changes, rather than waiting for end-of-line.
Here's the full tutorial with the State Machine part pretty near the top: