mql4 整数的运算需要注意事项

时间:2021-12-30 19:02:38
例如:
int a=3,b=1;
doubel =rt;
//错误写法,程序不能运行
rt=a/b

//正确写法,需要将分子和分母编程double型
rt=(a*0.01)/(b*0.01)

相关文章