Re: Use of A4GL_DEFDECPREC

Alain Siverly <[email protected]>
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <[email protected]>
thank you for testing. we tried now
some different things.

if we use this for compile the test programm:

4glc -G ./g_1test.4gl

4glpc -V5 -o 1test.4ae ./g_1test.4gl ./p_1test.4gl

then we get correct results.

but if we compile using our typical tools like "m -c ; m" then we
get the wrong results. it seems that the glb file ist different in
both cases and this makes the difference. but i don't know well
how the glb file is build so i cannot recognize the cause.

alain

VENTAS AG
Web: www.ventas.de
Fon: 040 / 32 33 34 0
Fax: 040 / 32 33 34 38
Firmensitz: Mittelweg 144, 20148 Hamburg, Deutschland
Registergericht: Hamburg, HRB 80 297 Ust.IdNr.: DE118686712
Vorstandsvorsitzender: Dipl. Ing. Alain Siverly
Aufsichtsratsvorsitzender: Dr. Olaf Rehme

Am 11.02.14 09:26, schrieb Mike Aubury:

When I run it here - I get :

decimal_16:
0.16666666666666670000000

float_1 = decimal_16:
0.16666666666666670000000

decimal_16 nach float_return:
0.16666666666666670000000

r_vpos.evk_pe_dm nach float_return:
0.16666666666666670000000

r_vpos.evk_pe_dm = decimal_16:
0.16666666666666670000000

float_1 :
0.16666666666666670000000

decimal_16 = float_1:
0.16666666666666670000000

Make sure you have no old .glb.dat files hanging around ?

On 11 February 2014 08:17, Alain
Siverly <[email protected] >
wrote:

Hi,

we have a last problem using the environment variable
A4GL_DEFDECPREC=255.

All things runs very well with one exception:

Using a global definition file which is referenced in
the upper part of a 4gl file, then decimal(16) get
rounded to two decimal numbers.

Since we use this almost in every file it would be great
to get a correction.

Please find attached:

testTable.sql -> Definition of the Table "vpos" (1
column DECIMAL(16)

g_1test.4gl -> Global file (defines a RECORD LIKE
"r_vpos")

p_1test.4gl -> the 4gl file for testing. The output
of the example is as comment in the beginning of the
file.

Thank you very much in advance!

Alain Siverly

VENTAS AG

(The VDC 2 is comming soon...!)

------------------------------------------------------------------------------

Android apps run on BlackBerry 10

Introducing the new BlackBerry 10.2.1 Runtime for Android
apps.

Now with support for Jelly Bean, Bluetooth, Mapview and
more.

Get your Android app in front of a whole new audience.
Start now.

http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk

_______________________________________________

Aubit4gl-discuss mailing list

[email protected]

https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.