This is how my UI looks like

My aspx page returns the following json data on ajax call
{
"List": {
"Table": [
{
"ID": 119,
"ProjectName": "Date Testing",
"ProjectDesc": "",
"Owner": 22,
"Colaborators": 22,
"Priority": 3,
"Status": 7,
"BeginDate": "\/Date(1312137000000+0530)\/",
"EndDate": "\/Date(1316543400000+0530)\/",
"Budget": 105.90,
"BudgetInDay": 30.80,
"BudgetResource": ""}
],
"Table1": [
{
"Tasks": 10}
],
"Table2": [
{
"BudgetInDay": 30.80,
"TotalTaskCostInDay": 11.00,
"BalanceOfDays": 19.80,
"Budget": 105.90,
"TotalTaskCost": 75.00,
"Balance": 30.90}
]
}
}
Now problem is that in Table2 object there is two field “BudgetInDay”, and “TotalTaskCostInDay” having decimal values. When I displaying both “BudgetInDay” shows correct with precision but in case “TotalTaskCostInDay” precision vale is truncate because the precision value is .00.
You can format the floating point values, using the toFixed method.
http://www.pageresource.com/jscript/j_a_03.htm
If you apply that to the other values to, 19.80 will be displayed as 19.80 and not 19.8.