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.
私はそれを仮定し(int)(float)n == nてもint nいいですか?少なくとも、負でない 31 ビット値にはこれが必要です。
(int)(float)n == n
int n
補遺。どう(int)(double)n ==nですか?
(int)(double)n ==n