AnsweredAssumed Answered

How to get two decimal point to a number element

Question asked by amudhavani.shanthosh181426 on Aug 1, 2018
Latest reply on Aug 16, 2018 by amudhavani.shanthosh181426

Hi,

 

Below is the response structure. All these are number datatype and the values are passed as it is from the source.

The response should have two decimal points for due, total and discount like shown below.. 

 

{
"totals": [
{
"serviceCharges": 0,
"otherCharges": 0,
"subtotal": 30.56,
"tax": 2.84, 
"due": 33.4, --> 33.40
"total": 33.4, --> 33.40
"items": 35.56,
"discounts": 5  --> 5.00
}
]
}

 

I tried various combination, but unable to get it. The below setting is giving discount with one decimal point as  "discounts" : 5.0.

But unable to get two decimal point like 5.00.

Kindly help. Thanks. 

 

Outcomes