Application Development 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: 

Reg floating point Conversion

Former Member
0 Kudos

dear all

Actually i want to show the ouput as 2,73.,,, 4,00,,,,1,95,,,,,, this is what these values are there in transaction .i want to show the report like that ,

But the datatype of this filed is Floating point so it is being displayed in the report like the following.

2,7300000000000001E+01

4,0000000000000001E-02

1,9500000000000000E+01

9,5999999999999996E+00

3,2200000000000003E+01

7,0999999999999996E-01

2,3999999999999999E+00

ii want to show 2,73 ,, 4,00, 1,95

regards

Sivaprasath

4 REPLIES 4

bpawanchand
Active Contributor
0 Kudos

HI

Pass the Float values to any PACK DECIMAL variables

check this snippet

DATA :

w_f TYPE f,

w_p TYPE p DECIMALS 2.

w_f = '2.23'.

WRITE :

/ w_f.

>w_p = w_f.

WRITE :

/ w_p.

Regards

Pavan

Former Member
0 Kudos

Define field like this

field type p decimal 2.

Former Member
0 Kudos

HI,

Take one variable with type P DECIMALS 2.

Now movw ur floating values to this new field and the display..

Former Member
0 Kudos

Hi shiva,

Try to use use folllowing

Functional module : FLTP_CHAR_CONVERSION.That will solve your probelm.

Hope it is helps.

Regards,

T.D.M.