Skip to content

Option to remove trailing zeros when getting string value out of "FixedNumber" #2093

Answered by ricmoo
PaulRBerg asked this question in Q&A
Discussion options

You must be logged in to vote

No, the string format is intentionally stable so that it is easier to parse using .split("."), which will always contain exactly two components. The only exception to this is if the number of decimals is 0, in which case there will never be a decimal point in the output.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@PaulRBerg
Comment options

Answer selected by PaulRBerg
Comment options

You must be logged in to vote
1 reply
@ricmoo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants