chenna.deepa
24th September 2008, 13:28
Hi all,

i am doing doubletype = long type/doubletype
when i am printing
message( doubletype)

its giving me whole value like 4 not 4.23

please help me in this regard

thanks in advance
deepa

zardoz
24th September 2008, 13:37
Just declare it as float, not long. Long are long integers.

_Ralph_
24th September 2008, 18:03
Your program is correct, a long divided by a double returns a duble..
the problem must be on the print format.

Go to the report editor and check the field properties.
On Display form there's a field calles display format. According to this field the decimal digits
will appear or not on session ttaad1508m000 you can check or create a new format. Or you can
fix it on the report. For example
ZZZZZZZZZ9VD99
means
00000000000,00