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

TYPE conversion / translate

Former Member
0 Likes
376

Hi,

Is there a Function Module available for converting a number in the format:

example: 1.200000000000000E+03

to an hour?

If not, then do I have to convert it myself (the +03 at the stand stands for the number of place to move the decimal to the right, making the converted number 1200.00 hours)?

Please Help.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
324

Just move it to another numeric type, like p


data: hour type f value '1200',
      hour_p type p,
      hour_i type i,
      hour_n(5) type n.
hour_n = hour_p = hour_i = hour.

1 REPLY 1
Read only

Former Member
0 Likes
325

Just move it to another numeric type, like p


data: hour type f value '1200',
      hour_p type p,
      hour_i type i,
      hour_n(5) type n.
hour_n = hour_p = hour_i = hour.