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

decimal places

Former Member
0 Likes
1,515

0.53985667

i want only the result as 0.53985 after decimal 5 places without usinf offset techniques.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,476

Hello,

try using the FM OIJY_ROUND_DECIMALS.

Regards,

Sachin

0.53985667

i want only the result as 0.53985 after decimal 5 places without usinf offset techniques.

7 REPLIES 7
Read only

Former Member
0 Likes
1,476

Hi,

The datatype of the variable in which the result you want to store should be of type packed with 5 decimals.

Hope its clear.

Regards,

Mansi.

Read only

0 Likes
1,476

no man...its fixed length in a structure length 9 and decimal 5.

is there any FM or other techniques?

Read only

Former Member
0 Likes
1,477

Hello,

try using the FM OIJY_ROUND_DECIMALS.

Regards,

Sachin

Read only

0 Likes
1,476

Hi,

use write statement to move it to another variable and use option DECIMAL where you can specify number of places you want after decimal point.

Read only

0 Likes
1,476

any ideas?

Edited by: JohnMell02 on Feb 18, 2010 11:10 AM

Read only

0 Likes
1,476

Use

 CALL FUNCTION 'C147_STRING_TRUNCATE'

Read only

former_member386202
Active Contributor
0 Likes
1,476

Hi,

Declare the variable type P with 5 decimal places.

Data : l_var type p decimals 5.

Regards,

Prashant