1 Attachment(s)
[RESOLVED] rounding values
Hi Friends
I've a datatable that developed by my colleague and filled at HTML table (old stayle programming)
HTML Code:
<tr>
<th>City1</th>
<td><%=string.Format("{0:0}", dtHour.Compute("max(field1)", string.Empty))%></td>
<td><%=string.Format("{0:0}", dtHour.Compute("min(field1)", string.Empty))%></td>
<td><%=dtHour.Compute("round(avg(field1),0)", string.Empty)%></td>
<td><%=dtHour.Compute("sum(field1)", string.Empty)%></td>
</tr>
but the value which I get is decimal, I'm trying to round it but dose not work and getting the following error:
Attachment 93099
please can anyone help to solve that error and rounding decimal value?
Regards