想在威纶触摸屏上进行计算,计算中有小数,可是计算结果总是不对,能帮忙看下么,下面是宏指令:macro_command main()float a[6]GetData(a[0],"MITSUBISHI FX2n",D,500,1)GetData(a[1],"MITSUBISHI FX2n",D,501,1)GetData(a[2],"M
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/06 03:49:57
想在威纶触摸屏上进行计算,计算中有小数,可是计算结果总是不对,能帮忙看下么,下面是宏指令:macro_command main()float a[6]GetData(a[0],"MITSUBISHI FX2n",D,500,1)GetData(a[1],"MITSUBISHI FX2n",D,501,1)GetData(a[2],"M
想在威纶触摸屏上进行计算,计算中有小数,可是计算结果总是不对,能帮忙看下么,下面是宏指令:
macro_command main()
float a[6]
GetData(a[0],"MITSUBISHI FX2n",D,500,1)
GetData(a[1],"MITSUBISHI FX2n",D,501,1)
GetData(a[2],"MITSUBISHI FX2n",D,502,1)
a[3]=3.141592653
a[4]=a[1]*a[1]*(a[0]*a[0]+36*a[3]*a[3]*a[2]*a[2])/(4*a[3]*a[3]*a[0]*a[0]*a[2]*a[2])
SQRT(a[4],a[5])
SetData(a[3],"MITSUBISHI FX2n",D,503,1)
SetData(a[4],"MITSUBISHI FX2n",D,504,1)
SetData(a[5],"MITSUBISHI FX2n",D,505,1)
end macro_command
想在威纶触摸屏上进行计算,计算中有小数,可是计算结果总是不对,能帮忙看下么,下面是宏指令:macro_command main()float a[6]GetData(a[0],"MITSUBISHI FX2n",D,500,1)GetData(a[1],"MITSUBISHI FX2n",D,501,1)GetData(a[2],"M
参考答案13.很多快乐和回忆就是那样的不可复制.珍惜眼前拥有的是不是太重要了.
macro_command main()
float a[6]
GetData(a[0], "MITSUBISHI FX2n", D, 500, 1)
GetData(a[1], "MITSUBISHI FX2n", D, 502, 1)
GetData(a[2], "MITSUBISHI FX2n", D, 504, 1)
a[3]=3.141592653...
全部展开
macro_command main()
float a[6]
GetData(a[0], "MITSUBISHI FX2n", D, 500, 1)
GetData(a[1], "MITSUBISHI FX2n", D, 502, 1)
GetData(a[2], "MITSUBISHI FX2n", D, 504, 1)
a[3]=3.141592653
a[4]=a[1]*a[1]*(a[0]*a[0]+36*a[3]*a[3]*a[2]*a[2])/(4*a[3]*a[3]*a[0]*a[0]*a[2]*a[2])
SQRT(a[4], a[5])
SetData(a[3], "MITSUBISHI FX2n", D, 506, 1)
SetData(a[4], "MITSUBISHI FX2n", D, 508, 1)
SetData(a[5], "MITSUBISHI FX2n", D, 510, 1)
end macro_command
双字占4个字节 !
收起
比较高深 这个我还玩不了