Divide operator /

Divide operator /

Language reference ›› Statements ›› Assignments and expressions ››
Parent Previous Next

For processors < PIC16 the "/" divide operator can be used instead of the DIV keyword since PMP does not deal with floating point on these processors, so it is an alias (Pascal rule overload).

This behavior is kept for compatibility with times where there was no floating point in PMP, but it is not recommended since there's source compatibility issues.

For PIC16+, this is the normal floating point divide operator, so the result is always float.