C++ Math isunordered()The isunordered() function checks whether the value of first argument can be meaningfully compared with the second argument. If the first argument cannot be meaningfully compared with the second argument (i.e one or both are NAN), it return 1 otherwise 0. SyntaxConsider two numbers 'x' and 'y'. Syntax would be: Parameter(x,y):The values which we want to compare. Return valueIf the value of one or both are NAN then it returns 1, otherwise 0. Example 1Let's see a simple example when the value of x is NAN. Output: Values of x and y are : nan,3.2 isunordered(x,y) : 1 In this example, the value of x is NAN. Therefore, the function returns 1. Example 2Let's see a simple example Output: Values of x and y are : 2.6,3.2 isunordered(x,y) : 0 In this example, both x and y are not NAN. Therefore, the function returns 0 value.
Next TopicC++ Math Functions
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week