
Originally Posted by
Heckler
...If anybody has more compact code that only gives whole numbers I would be grateful....
Again, assuming I am not as confused as you are.
The 1st part of the If adds a hundreds digit, the 2nd part removes a leading 0. If you don't care for a leading 0, these are the elements that you are interested in:
Code:
TempF = TempF + 3200
SEROUT2 DISP,BAUD, [INS,LINE1, " TempF = ",Sign,DEC TempF DIG 4,_
DEC TempF DIG 3,DEC TempF DIG 2,Deg,"F "]
- Add that 3200.
- Use Digits 4, 3 and 2 of TempF.
Bookmarks