Re: Help with calculation
@ first ...
could you explain how DIV32 results can be > 16 bits ...
Never seen that for 14 Years I use PBP !
Ok, ...
1) The "Dummy" variable must be < 32768 ... see Manual !
2) IF you use DIV32 ... your program variables only can be < 16 Bits ( 65535 ), obvious, eh ! ( DIV32 doesn't work when LONGS used !!!
)
=> soooo, how are you dealing with your supposed 16 -> 32 bits intermediate "results" ???
BTW :
Code:
IF wDummy > 65536 THEN
" another " compiler would have sent you the message
Alain
************************************************** ***********************
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