我的代码:
arccos(0.5*(r-g+r-b)/sqrt(a));
其中r,g,b为integer型,a为extended型
编译正确,运行程序崩溃,信息为 invalid floating point operation
请问如何解决
将a改为real型
UP!!!
may be the operator of arccos() is out of range!