2006 Dec 15 12:55 PM
HELLO.
I have the following code:
DATA n TYPE p DECIMALS 3.
DATA m TYPE p DECIMALS 3 VALUE '3.44'.
n = floor( m ).
break-point.
when I put it into simple Z_TEST raport it goes all right:
m = 3.440
n = 3.000
but when I put it into the form which i perform in a printing program I get following:
n = 0.344
m = 0.344
Are these mathematical functions need to be declared or sth?
Thank YOU.
2006 Dec 15 1:13 PM
Please check the Fix point Arthimetic check box in the attributes. It should be ticked.
regards
Anurag
Please check the Fix point Arthimetic check box in the attributes. It should be ticked.
regards
Anurag
2006 Dec 15 1:13 PM
DATA n TYPE p DECIMALS 3.
DATA m TYPE p DECIMALS 3 VALUE '3.44'.
n = floor( m ).
DATA : Q(10) TYPE C.
Q = N.
WRITE:/ Q.Try moving this to a character variable and see if this is working .
like &q& in ur form .
regards,
vijay
2006 Dec 15 1:13 PM
Please check the Fix point Arthimetic check box in the attributes. It should be ticked.
regards
Anurag
2006 Dec 15 1:47 PM
that was the attribute fixed_point_arithmetic unchecked. thank you.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |