C++ Math isnormal()

The function determines that whether the given number is normal or not. If the number is normal, it returns 1 otherwise 0.

Syntax

Suppose a number is 'x'. Syntax would be:

Parameter

x: It is a floating point value.

Return value

Parameter(x)Return value
Infinite0
Normal value1
Subnormal value0
Not a Number0

Example 1

Let's see the simple example.

Output:

isnormal(5) is : 1
isnormal(5.0/0.0) is : 0
isnormal(0.0/0.0) is : 0





Latest Courses