Details
Description
As of now if g:formatNumber is used with NaN value, the default value of DecimalFormatSymbols is returned (\uFFFD). This does not look nice in HTML output.
We should have a way to customize the appearance of NaN values on the webpage. This could be easily done by adding a new attribute:
<g:formatNumber number="${Double.NaN}" nan="n/a"/>
Obviously the Output should be "n/a"
I've already fixed this locally and send a pull request soon.
see https://github.com/grails/grails-core/pull/182