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

Script

Hi,

I'm modifying a script,field in table has got decimals places of 4 and it's displaying the same on output.I want to restrict the no of decimals places to 2.How to do it?

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Jul 07, 2008 at 10:23 AM

    Hi

    You Can use

    &symbol(.N)&

    Ex: &symbol(.2)&

    regards

    Pavan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 07, 2008 at 10:30 AM

    hiii

    see following example for decimal in script.

    &EKPO-MENGE& -> 1,24.560

    &EKPO-MENGE(.1) -> 1,24.6

    &EKPO-MENGE&(.4) -> 1,24.5600

    regrads

    twinkal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 07, 2008 at 10:25 AM

    Hi Hosmath,

    For this you can use a formatting option called &symbol(.N)& to restrict the decimal places.

    Example :

    &sflight-price& -> 1,234.560

    &sflight-price(.1) -> 1,234.6

    &sflight-price&(.4) -> 1,234.5600

    &sflight-price&(.0) -> 1,235

    Regards,

    Swapna.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 07, 2008 at 10:26 AM
    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.