|
On 2020-03-03 3:10 p.m., dlclark@xxxxxxxxxxxxxxxxmany
wrote:
"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> wrote on 03/03/2020
02:48:17 PM:
If you code DECPREC(63) in your CTL-OPT, you'll get the decimal
positions in the output of %CHAR.
Thanks, Barbara. That worked but then it gives me way too
thedigits to the right of the decimal place. Is there a way to specify
number of decimal positions I want using a non-constant variable?
I can only think of using %DEC inside the %CHAR.
To get 5 decimal places:
result = %char(%dec(packed_data / d_shift : 63 : 5)) ;
You could put something smaller than 63, but using the maximum works ok.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.