It's possible to show on LCD decimal numbers;
value = SQR 10 ' give 3,16
i use this:
Lcdout $fe,1, DEC (value DIG 2), "." ,DEC (value DIG 1) ,DEC (value DIG 0)
but not show correct.
Let me guess....you're expecting 3.16 right?
Do a search in the PBP manual for floating point math and tell me what you come up with (hint: we've already been through this in January, see post #8 of the "16f877 with LM335 problem" thread ).
Last edited by skimask; - 30th March 2007 at 21:25.
Bookmarks