📜  从 float 转换为 long - C 编程语言代码示例

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

代码示例1
float a = 1.0;
long b = (long)a // variable b now equals variable a which has been cast to long