FormatNumber always display 2 decimals even for integer
Posted: Wed Apr 15, 2020 1:12 pm
As 'NbDecimals' is optional, it would be logical that in the absence of this parameter there are no decimals displayed (if integer) and not two as is currently the case.
-- Fr
Comme "NbDecimals" est facultatif, il serait logique qu'en l'absence de ce paramètre, pour un entier, aucune décimale ne soit affichée et non deux comme c'est le cas actuellement.
Code: Select all
Debug FormatNumber(125400.25) ; Will display: 125,400.25
Debug FormatNumber(125400) ; Will display: 125,400.00 ; .00 not needed
Debug FormatNumber(125400, 0) ; Will display: 125,400 ; is OK but need to add parameter
Comme "NbDecimals" est facultatif, il serait logique qu'en l'absence de ce paramètre, pour un entier, aucune décimale ne soit affichée et non deux comme c'est le cas actuellement.