Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 C 中的代码在NaNUbuntu 中得到了结果,但8000在 Fedora 中得到了(正确的值)。
NaN
8000
ExtCurStyle->exts_sideCoupleHalo = (int)(1000 * (float)atof(argv[1]));
argv[1]是8,并且我已经通过几次尝试确定了atof(argv[1])价值8.0(双倍)。但是,当我乘以 时1000,它变为NaN。
argv[1]
8
atof(argv[1])
8.0
1000
我应该怎么办?