I'm outputting prices in a channel with a little formatting like so:
£{{ entry.priceFrom|number_format(2,'.',',') }}
Gives me £1,000.00 or £99.99 etc... However client isn't a fan of the double zeros (e.g. £100.00) and would prefer such prices to show up as £100 – only showing decimal numbers if they're not "00".
I was working on some kind of preprocessing/condition here but it seems long-winded, and wondered if anyone has a neat solution?