Skip to Content

convert a character field with decimal and thousand in a integer

Hi chaps,

very simple?

I have to convert a character field for ex. '1,254.36 ' into a integer filed, make a calculation and give it back in the same format for screen display or any thing else. (it is in a user-exit => no choice)

Careful for a EUropean user the fields is '1,254.36' BUT the exit may be called by a US citizen and then you have '1.254,36'

Oh, yes, I forgot after the calculation, the fields has to be returned back in the same format

Do you have any ready to use function or any help?

Regards Vincent

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 08, 2010 at 06:28 AM


    write your character field to a currency field, mke your calculation, and write the currency field back to your character firld using format options (e.g. CURRENCY)



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.