MRCH
March 8, 2021, 7:36am
1
Is it possible to force reports to show values as decimals instead of scientific format?
Please see my test code below:
+prog template
let#A 123456789
prt#A
end
This yields following output:
---- CADINT VARIABLE A ( 0) = 0.1235E+09
Hello,
have a look onto the following code:
+prog template
HEAD
let#A 123456789
prt#A
TXB #A
END
I use PRT for internal checks only.
Greetings from NRW
MRCH
March 8, 2021, 8:58am
3
Hi, Thanks for the reply
Unfortunately it seems TXB is only valid for variables and not for lists? Please see the following code:
+prog template urs:24.1
let#A 123456789,987654321
prt#A
TXB #A(:)
end
sfr
March 8, 2021, 11:31am
4
Try
+prog template urs:24.1
let#A 123456789,987654321
prt#A
Loop#1 A
TXB #(#A(#1)) $ to text
TXB #(#A(#1),9.0) $ to text with fieldwidth 9 and 0 decimals
EndLoop
end
MRCH
March 8, 2021, 11:44am
5
Thanks, seems to work!
Debugging, however, is getting rather complex when I need to write a loop just to see my variables, but I guess that’s the way it is. Thanks a lot!