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

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

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