This repository has been archived by the owner on Apr 2, 2019. It is now read-only.
Use 'D' symbol in format to specify minimal length of fractional part #84
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This request address issues #45 and #63 (as far as I understand this issues duplicate each other). Now it's possible to specify minimal length of fractional part using 'D' symbol. At the same time 'd' symbol used to specify maximal length as it works in current version.
Here some examples how format works. Assume that value is
1.23
:( ddd).d
became1.2
( ddd).D
became1.2
( ddd).ddd
became1.23
( ddd).DDD
became1.230
( ddd).Ddd
became1.23
( ddd).DDd
became1.23
( ddd).dD
will raise exceptionLook for live sample in
trailing-zero.html
file intest
folder