Skip to main content
Knowledgebase
Home
Renesas Singapore - Knowledgebase

CC78K4: Avoiding technical problems through double-precision

Latest Updated:12/01/2011

Question:

If during float/float division with CC78K4, divisor underflow occurs and division by 0 is performed, and an overflow error (+INF) occurs in the runtime routine.
Can this be avoided by casting the dividend and divisor to double-precision?

Answer:

No, this is not possible.
In CC78K4, double-precision floating points are not supported.
Therefore, prior to performing division, be sure to check that the divisor is not 0, and only then perform division.
Suitable Products