In the new version of iReport, which is JasperStudio, it can be done as follows:
new java.text.DecimalFormat("#,##0.00", DecimalFormatSymbols.getInstance(new Locale("es", "VE"))).format($F{grandtotal})
I leave this here, in case someone needs it. Regards