摘要:
How can I convert a floating-point value to an integer in C?This is one of the frequently asked questions about the C language, and it is discussed in short in the C FAQ list, as question 14.6. The answer there suggests the use an expression like but admits that this technique does not work for nega 阅读全文