📜  float to int c# 代码示例

📅  最后修改于: 2022-03-11 14:48:41.749000             🧑  作者: Mango

代码示例3
float someFloat = 42.7f;
int someInt = (int)someFloat;               // 42