As the title says... I need to do something rather simple but for some reason I cannot think of an easy way to do it. I know that there has to be one.
I'm recieving serial data and at the moment storing it bit by bit into a vector. For example 90.00;1.12;130.34
Vector(1)=9
Vector(2)=0
Vector(3)="."
...
So these numbers can vary in size and number of digits.
I need to basically do the DIG command backwards...
B0=123
B1=B0 DIG 1
This sets B1= 2.
What I need is to take Vector(1) and Vector(2) and put them together in 1 variable. Which in this case would be 90


), you could look in the PBP manual under the SERIN2 statemen, and look at the DEC and WAIT modifiers. It just might (ok probably will) take care of everything for you without having to write a conversion routine.



Bookmarks