
Originally Posted by
Plcguy
I'm not seeing what "DEC" and "dig" offers over my ver.....
Please enlighten me!
Hi, PlcGuy
The Goal here is to offer solutions showing the differents uses of PBP and try to make people understand what they do ... not to show as-is the - so called - " best " solution.
Pxidr84 had chosen this way of displaying its numbers ... no need to change it, as long as he understands what he does. - I perfectly know it is not the shorter or easier or smarter or .... way of doing it. And we do not talk about Walter's # 12 post ...
The question was about scaling a value ... whithout knowing the Pic type, I showed the DIV 32 use ... which is the simpler for him.
Darrel posted about "BIG Numbers" operations ... and it is the way to get more decimals here ... but not so simple - for a newbee !!!
Now, We Know it is a Pic 18F ... the use of LONGs becomes obvious. It still is easy to use.
I see in your example you just display the ADC input voltage, and not the required temp value, what could raise more questions than offer ideas, for a PBP "newbee" as our friend, as you didn't tell him it doesnt give the awaited result ...
but was just an example.
Not so easy to give a useful and usable answer to a post ... don't you think ??? 
Alain
PS: for B0, B1 .... absolutely no problem till you do not use the BS1 or 2 to include " compatibility files " ...
Last edited by Acetronics2; - 15th January 2011 at 09:17.
************************************************** ***********************
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