decimal icon indicating copy to clipboard operation
decimal copied to clipboard

Add Format()

Open mcdee opened this issue 3 years ago • 0 comments

This adds a Format() function to decimal, allowing for setting of a thousands separator (as requested in #267) and decimal separator, as well as the existing functionality for trimming trailing zeros. This allows for easier use in localized environments.

This replaces the prior internal string() function, which could now be removed entirely but that would result in a larger PR so has been left for now.

Worth taking a close look at lines 1032-1034 to ensure they behave as expected, as they alter the flow compared to before this PR.

mcdee avatar Apr 11 '22 16:04 mcdee