Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Floor problem.

Former Member
0 Likes
943

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
858

Please check the Fix point Arthimetic check box in the attributes. It should be ticked.

regards

Anurag

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.

3 REPLIES 3
Read only

Former Member
0 Likes
858
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

Read only

Former Member
0 Likes
859

Please check the Fix point Arthimetic check box in the attributes. It should be ticked.

regards

Anurag

Read only

0 Likes
858

that was the attribute fixed_point_arithmetic unchecked. thank you.