Ans:
7. The answer depends on how large the two types are. If long is 4 bytes, there is no loss.That’s because the largest long value would be about 2 billion, which is 10 digits. Because double provides at least 13 significant figures, no rounding would be needed.The long long type, on the other hand, can reach 19 digits, which exceeds the 13 significant figures guaranteed for double.
7. The answer depends on how large the two types are. If long is 4 bytes, there is no loss.That’s because the largest long value would be about 2 billion, which is 10 digits. Because double provides at least 13 significant figures, no rounding would be needed.The long long type, on the other hand, can reach 19 digits, which exceeds the 13 significant figures guaranteed for double.
0 Questions:
Post a Comment