Skip to Content

decimal value in table cell

Hello Colleagues,

I am storing the values (decimal) retrived from the Backend into a context node. And creating the table element dynamically using the node.

The values in the table are having dropped zeros for the decimal numbers.

Say for example, if the Back End returns 150.50, the table is having the value 150.5.

Similalry if the value is 10.00, the table is having the value 10.

Similalry if the value is 0.00, the table is having the value 0.

Can you please suggest me how to get the exact value returned from the Back End to the table.

Regards,

Mohan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2009 at 06:39 PM

    Hi Mohan,

    Please confirm what is the type of context attribute where you are storing the decimal?

    It should not be Integer. It can be double, float or decimal based on your requirement.

    Regards,

    kartikaye

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 22, 2009 at 05:32 AM

    Hi Mohan

    Please check out this thread

    Displaying the quantity field in decimal values

    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.