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

Rounding error

shishupalreddy
Active Contributor
0 Likes
446

In my SPM Report I need to out put various group of costs depending on cost elements .

here when im trying to output the Hours for each catagory of labours it is giving

2.04 99.67 hrs

But my client wants 2 100 hrs .

I mean values should be rounded to the nearest number depensding the rounding factor.

Earlist reponce is gr8 to me

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
422

Hi,

just declare the variable as <b>type p</b>.

data:a type p value '1.7'.

write:/ a.

3 REPLIES 3
Read only

anversha_s
Active Contributor
0 Likes
422

hi,

pls chk this.

DATA VAL TYPE I.

VAL = CEIL( '22.71' ).

WRITE VAL.

rgds

anver

Read only

0 Likes
422

Hi,

Declare your variable

DATA: var1 type p decimals 0.

I hope this should solve it.

Regards,

Sandeep

Read only

Former Member
0 Likes
423

Hi,

just declare the variable as <b>type p</b>.

data:a type p value '1.7'.

write:/ a.