cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
NAN in program output
NAN in program output
Feb 26, 2017 at 1:03am UTC
pmi
(3)
Hey I tried to run a code, but the output is NAN, Can anyone help me? thanks
Window Trail #860
sq var.: nan
Window Trail #861
sq var.: nan
Window Trial #862
sq var.: 16.8922
Window Trial #863
sq var.: 16.8922
Window Trial #864
Feb 26, 2017 at 1:06am UTC
Pattako
(74)
Hey I tried to run a code, but the output is NAN, Can anyone help me? thanks
Remember that we don't know your code at all. If you don't give us your code we can't point out the mistakes for you.
Feb 26, 2017 at 1:24am UTC
pmi
(3)
My codes are too long around 3000 line, so how could I post it here? Thanks
Feb 26, 2017 at 1:32am UTC
Pattako
(74)
This site is useful and you just need to copy the link to your paste.
http://textuploader.com/
Feb 26, 2017 at 2:39am UTC
integralfx
(897)
The NaN values are used to identify undefined or non-representable values for floating-point elements, such as the
square root of negative numbers
or the
result of 0/0
.
http://www.cplusplus.com/reference/cmath/isnan/
Check your code for these.
Topic archived. No new replies allowed.