I am compiling this with the long version of PBP and using an 18F2420.
Why do I get the result of the division as shown below?
I expected it to be 0xC455A
Code:P var Long
current_voltage var Word
current_voltage = 49800
P = 78610 * current_voltage ; results is 0xE956C590
P = P / 4868 ; result is 0xFFFECEED in MPLAB watch