Is there a way with NumberFormat to display :
NumberFormat
Thanks for yo
An alternate solution, working on the string output of NumberFormat:
final f = NumberFormat("###.00"); print(f.format(15.01).replaceAll('.00', '')); print(f.format(15.00).replaceAll('.00', ''));