Hi all,
i recently descovered a little bug in my code.
The result value was working just fine and i was getting it in the xx,x format.
This works well until i reach 99,9șC. After this i get the 4th digit in and the result ( instead of 110,5șC for example ) is 10,5șC .
This is due to the way the code is handling the value and sending it out.
How can i get the "," in there with 3 digits but keeping it when it reaches the 4th ?Code:'code for AD adcin temp,va tempe=(va*/2500 )>>2 'code to output value retrieved from eeprom debug dec2 RA/10,",",dec1 RA//10,13,10
EDIT:
This is what i i'm thinking:
Any idea ?Code:debug dec3 RA/10,",",dec1 RA//10,13,10
Thanks




Bookmarks