Hi all I have an aggregateResult query which is pulling correctly into a visualforce page block table. All the numbers are have 0 digits right of decimal but the values display with one 0 to the right. Example: 510.0 instead of 510. Does anyone know how to fix this?
Also, can the numbers be displayed with the thousands (and more) commas?
Thanks
Edited to show code sample
public List<AggregateResult> getAggregateList(){
Parent_Custom_object__c TheCS = (Parent_Custom_object__c)sc.getRecord();
List<AggregateResult> AggResults = new List <AggregateResult>();
AggregateResult[] aggQuery = [select
zone__c zone,
SUM(Added_Value__c)TotalAddedValue,
SUM(delivered_units__c)TotalDelivered
from Custom_Child_object__c
where Parent_of_Custom_Child_object__c =:TheCS.id
GROUP BY zone__c
];
if(aggQuery!=null){
for(AggregateResult QAR:aggQuery)
{
AggResults.add(QAR);
}