Re: Decimal separator and 4GL_NUMERIC
Mike Aubury <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAGAq4WFcbuiSf=jyZVEemG-XbW017jCq+QctQUg2CdYTO6oSzg@mail.gmail.com> |
That these are making no difference has me worried - are you sure they are not set somewhere else ? If you try : $ aubit-config A4GL_NUMERIC What does that say ? To make absolutely sure - set it in the environment : $ export A4GL_NUMERIC=,. (I'm not sure ALLOWCOMMAINDECIMAL does anything any more - at least - I cant see it in the code) On 17 December 2015 at 13:37, Alessandro Vercelli <[email protected]> wrote: > Hi all, > we are building an application which uses decimal numbers but something is not going as expected. > > Aubit4GL version is 1.2.38, binary installation on Ubuntu 12.04 32 bit. > > In detail, we tried to obtain numerical output with two decimal and comma separator with the following code: > > :::::::::::::: > formtest.4gl > :::::::::::::: > main > DEFINE l_sai decimal(8,2) > OPEN WINDOW w_test AT 2,1 WITH FORM "formtest" > ATTRIBUTE(PROMPT LINE FIRST, MESSAGE LINE 2, COMMENT LINE LAST) > let l_sai = 123.45 > while true > input by name l_sai without defaults > after input > display by name l_sai > end input > sleep 1 > end while > close window w_test > end main > > > :::::::::::::: > formtest.per > :::::::::::::: > DATABASE FORMONLY > SCREEN > { > xxxxxxxxxxxxxxxxxxx > Test [a ] > xxxxxxxxxxxxxxxxxxx > } > END > ATTRIBUTES > a = FORMONLY.l_sai; > END > INSTRUCTIONS > DELIMITERS " " > END > > > > When ran, if input is 44738, then output is > > xxxxxxxxxxxxxxxxxxx > Test 44738.00 > xxxxxxxxxxxxxxxxxxx > > instead of 44738,00 as desidered. > > > > We made several attempt with: > > A4GL_ALLOWCOMMAINDECIMAL=Y (tried with or without) > A4GL_NUMERIC=,. (also tried . or , or ., or disable) > LANG=it_IT.UTF-8 (tried with or without) > > in $AUBITDIR/etc/aubitrc without any change in output, it seems these variables do not have any effect. > > Any help appreciated, thanks anyone > > Alessandro > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Aubit4gl-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss ------------------------------------------------------------------------------