是代码函数的错误吗?

 
在IBFX平台
MathFloor( double x)
MathCeil( double x)

这两个函数计算结果相同,

为什么啊?请专家帮忙解释一下,谢谢!

 

The MathFloor function returns a numeric value representing the largest integer that is less than or equal to x.

The MathCeil function returns a numeric value representing the smallest integer that exceeds or equals to x.

你输入的x是整数吧?

 
Loong 写道 >>

The MathFloor function returns a numeric value representing the largest integer that is less than or equal to x.

The MathCeil function returns a numeric value representing the smallest integer that exceeds or equals to x.

你输入的x是整数吧?

womoon
写道
>>
在IBFX平台
MathFloor( double x)
MathCeil( double x)

这两个函数计算结果相同,

为什么啊?请专家帮忙解释一下,谢谢!

确实输入的是整数,知道我的错误了,感谢!

 

晕,这都被我猜到?

 
Loong 写道 >>

晕,这都被我猜到?

是啊!写EA时思考的问题很多,期间经常有错误出现,出错后脑筋没转过弯时,需要很长时间才能查出错误所在,往往错误是很简单的;我写了很多EA,回过头再去查看以前的EA时,有时都想不起来为什么这样写;我是自己边学边编写,没有规范的编写体系,应该总结一下了;编写出有效的好的EA确实不容易;有这样的交流平台,帮助很大,谢谢你的猜想。

 

呵呵,高,连这都能被你猜到..............

原因: