newly added. Not for productive used yetsvn diff | grep Index:
This commit is contained in:
22
src/tests/nanTest/nanTest.cpp
Normal file
22
src/tests/nanTest/nanTest.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <math.h>
|
||||
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
double value;
|
||||
|
||||
value = nan("NAN");
|
||||
|
||||
if (isnan(value))
|
||||
cout << endl << "value is not a number";
|
||||
else
|
||||
cout << endl << "value is a number";
|
||||
|
||||
cout << endl << "value = " << value;
|
||||
|
||||
cout << endl << "done ..." << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
17
src/tests/nanTest/nanTest.pro
Normal file
17
src/tests/nanTest/nanTest.pro
Normal file
@@ -0,0 +1,17 @@
|
||||
#------------------------------------------------------
|
||||
# nanTest.pro
|
||||
# qmake file for nanTest
|
||||
#
|
||||
# Andreas Suter, 2007/05/14
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
#------------------------------------------------------
|
||||
|
||||
MAKEFILE = Makefile
|
||||
|
||||
CONFIG += warn_on debug
|
||||
|
||||
SOURCES = nanTest.cpp
|
||||
|
||||
TARGET=nanTest
|
||||
Reference in New Issue
Block a user