📜  c float to int - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:37.533000             🧑  作者: Mango

代码示例2
# you can cast in c like so
float my_float= 1.446;
int my_int = (int) my_float;