Which formula do you need?
In the first post, you said you needed the 4 digit number divided by 60.
5894 / 60 = 98.233
Now it seems that multiplying by 0.006 is what you are looking for.
5894 * 6 / 1000 = 35.364
5101 * 6 / 1000 = 30.606
Either way, you can still use mister_e's example instead of all the multiplications.
LATDEC var word
SerIn2 RX,BAUD,[wait("$HOLD,"),SKIP 7,DEC4 LATDEC]
Then depending on which formula you actually need, do one of these...
LATDEC = LATDEC * 6 / 1000
LcdOut "Result: ", " ", #LATDEC
-- OR --
LATDEC = LATDEC / 60
LcdOut "Result: ", " ", #LATDEC
<br>
Bookmarks