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: 

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

former_member680493
Participant
0 Kudos
775

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

former_member680493
Participant
0 Kudos
559

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

4 REPLIES 4

Former Member
0 Kudos
559

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

former_member680493
Participant
0 Kudos
560

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

0 Kudos
559

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.

former_member680493
Participant
0 Kudos
559

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