-1.#IND是什么意思(双流输出) [英] What does -1.#IND mean (double stream output)

查看:53
本文介绍了-1.#IND是什么意思(双流输出)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法通过Google找到它,也无法在此处搜索或在Microsoft的帮助页面上找到它...

I could neither find it via google, search here or on Microsofts helppages...

经过大量的计算,有时,当通过 std :: cout 输出我的双打时,我在控制台上打印出结果:

After some extensive calculations, sometimes, when outputting my doubles via std::cout i prints as result on console:

-1.#IND

cout流没有任何修改(例如精度等).我假设程序想告诉我一些错误,但是我无法弄清楚:/它不经常发生,但是发生频率较低(这是一种遗传算法,所以我每代都有输出,并且大约每5至10代就会出现一次……)

There are no modifcations(like precision etc) to the cout-stream. I assume the program wants to tell me about some sort of error, but I can't figure it out :/ It doesn't happen that often but with a low frequency (it is a genetical algorithm, so i have an output after every generation, and in about every 5th to 10th generation this seems to happen...)

有关信息,我正在使用Visual Studio Pro 2013.

For information, I'm using Visual Studio Pro 2013.

推荐答案

Windows将NaN显示为-1.#IND.NaN是没有意义的数学运算的结果.例如,0.0/0.0或sqrt(-1.0)将返回NaN.如果没有有关基础操作的更多详细信息,我真的无法提供进一步的帮助.希望这足以指引您正确的方向.

Windows displays NaN as -1.#IND. NaN is a result of a mathematical operation that does not make sense. For example, 0.0 / 0.0, or sqrt(-1.0) will return NaN. I can't really help further without more details about the underlying operation. Hopefully this is enough to point you in the right direction, though.

这篇关于-1.#IND是什么意思(双流输出)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆