当我在 macOS 上使用 GnuCOBOL 3.2 构建以下程序并输入时10.5
,为什么它会打印10.0
?
program-id. foo.
data division.
working-storage section.
77 x pic 99v9.
procedure division.
accept x.
display x.
stop run.
类似地,如果我将 Picture 子句更改为PIC 9(3)V99
并输入458.12
,它会打印458.10
。