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

URGENT!!!!!!! - CONVERT A NUMBER TO FLOAT

former_member680493
Participant
0 Kudos
1,155

Hi!

I HAVE a NUMBER 0000.699 and I need it on 6.9900000E-01 format!

HOW I CAN DO THAT????

Please its urgent!!

Tks in advance

1 ACCEPTED SOLUTION
Read only

former_member680493
Participant
0 Kudos
939

it not work for me! I need the values exactly the same!!

4 REPLIES 4
Read only

Former Member
0 Kudos
939

Hi,

Check this FM "CTCV_CONVERT_DATE_TO_FLOAT" . It can convert any 30 digits of number to float.

You can even copy the source code of this Function Module and extend it beyond 30 numbers.

Reward points if useful.

Regards

Abhishek

Read only

former_member680493
Participant
0 Kudos
940

it not work for me! I need the values exactly the same!!

Read only

0 Kudos
939

Hi,

Check this code.

Data : v_float type f,

v_dec type p decimals 3 value '0000.699' .

v_float = v_dec.

write : v_float, v_dec.

Regards

Abhishek.

Read only

former_member680493
Participant
0 Kudos
939

tks man! i gave another solution! but you help me a lot!