This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 搞 COBOL / MAINFRAME 的大虾, What is meaning of “HIGH- VALUE”
what's different between "comp-1; comp-2"
I know comp-1 to define (float type );comp-2(double), anything else?搞 COBOL / MAINFRAME 的大虾, 今天遇到点问题想请教:
01 Z1-SYMBOLIC-MAP PIC X(686) VALUE HIGH-VALUE.
What is meaning of “HIGH- VALUE” in this definition, and I always met
Some programs in working storage also use “LOW-VALUE” , could u give me
Some guide?
Thanks
-canadastar(新札师妹);
2005-1-21
{301}
(#2086095@0)
-
值,和数据类型无关。high value 就是该定义能表达的最大值.如果是三位数,high value 就是999.
-aka(棒棒);
2005-1-21
(#2087111@0)
-
楼上的那位朋友前面一句话对的.后面的错了.high value 用 16 进制表示是FF low-value 用 16 进制表示是 00 "999" 用 16 进制表示则是 F9F9F9.
请注意.
-scottee(笑熬浆糊);
2005-1-21
(#2087145@0)
-
我说的是COBOL里的三位数。
-aka(棒棒);
2005-1-22
(#2087399@0)
-
算啦.你写个小程序就可以证实了.如有书的话或上网看一下就明白了.
我知道你想说得是 pic 9(03) or 其他.一旦赋值high-value or low-value 后的
的结果.
-scottee(笑熬浆糊);
2005-1-22
(#2087486@0)