Skip to Content
author's profile photo Former Member
Former Member

Reducing decimals 3 to 2

Friends,

I am strugling with this issue. Need to reduce output decimals from 3 to 2 for field VBDKA-NTGEW. Appreciate if i can get some help or suggestion on this please.

I tried this but no luck &VBDKA-NTGEW(.2)&.

Thank you,

Bobby

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 15, 2011 at 02:49 AM

    Hi,

    If &VBDKA-NTGEW(.2)& does not work,use a pre-defined datatype with decimal 2.

    Jshree

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2011 at 04:35 AM

    Try &VBDKA-NTGEW(C7.2)&

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 15, 2011 at 04:56 AM

    Hi,

    DO you intend to round of to 2 decimal places? Or do you wish to remove the 3rd decimal?

    You can assign the value to a new variable, having 2 decimal spaces.SHould solve your problem.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2011 at 07:42 AM

    try

    &VBDKA-NTGEW(C7.2)&
    

    or use decimals 2. in your code

    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.