Is it somehow possible to only display the fraction digits with fmt:formatNumber
? I basically need to render a price-like double in two fields: decimal and fraction digits (123.456 -> 123 456) and I want to avoid string splitting etc. :-)
The solution has also to work with a minimum number of fraction digits in order to create for instance this:
123.1 -> 123 01
The data represented is a price that is stored as a decimal number for some reason.
minFractionDigits="2"
would produce .01
as output for the second field.
Another output example would be:
123<span>01</span>