Skip to Content
avatar image
Former Member

Function module to Convert integer to floating point

Hi,

I have a field in the selection screen, which is of type character.

I need to convert the integer to floating point.

Is there any function module to do so?

Please help me...

Thanks.

Kranthi.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 17, 2007 at 07:02 AM

    I also need to know how to convert char to integer.

    and then from integer to float

    Add comment
    10|10000 characters needed characters exceeded

    • Why dont you directly assign it -

      data : var1(10) type c value '1021.11',

      var2 type i.

      var2 = var1.

      You may look into FMs -

      MOVE_CHAR_TO_NUM

      CONVERT_STRING_TO_INTEGER

      Regards,

      Amit

      Reward all helpful replies.