Skip to main content
Knowledgebase
Home
Renesas Singapore - Knowledgebase

What result is returned when division by 0 is performed?

Latest Updated:12/01/2011

Question:

What result is returned when division by 0 is performed?

Answer:

The result differs according to the dividend. Combinations that also include input arguments other than the allowed ones, and calculation results are as follows.

\Divisor
Dividend\
Not a number Infinity 0 Normal number
Not a number Not a number Not a number Not a number Not a number
Infinity Not a number Not a number Infinity Infinity
0 Not a number 0 Not a number 0
Normal number Not a number 0 Infinity x/y
Suitable Products