Hi, Sayzer
You' re to it ...
With showing the Half, now ( was DS 1820 Degrees with 3 Digits Leds...)
Code:
IF ( TEMP > 2631 and Temp < 3731) THEN ' -10 to 100°C
Virgule = 1
' round to 1/2 degré et show the 5/10
IF(Tempa // 10) < 3 THEN Tempa = ( Tempa/10)* 10 : GOTO AFF
IF(Tempa // 10) < 8 THEN Tempa = (Tempa/10)*10 + 5 : GOTO AFF
IF(Tempa // 10) > 7 THEN Tempa = (Tempa/10)*10 + 10 : GOTO AFF
ENDIF
Virgule = 0
IF (Tempa // 10) > 4 THEN Tempa = Tempa + 10
Tempa = Tempa/10 ' Show Degrees without tenths
Have a nice day
Alain
Last edited by Acetronics2; - 16th February 2008 at 10:57.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks