How to ensure a subclassed Quantity instance always renders trailing zeros to a given degree of precision #29
-
I have a subclass based on the Quantity class
If the value is 0, Any suggestions? Thanks, JW |
Beta Was this translation helpful? Give feedback.
Answered by
KenKundert
Jul 22, 2023
Replies: 1 comment 1 reply
-
The first example in Subclasing Quantities gives an example of how to do this:
If you are formatting quantities for output in tables, you might want to also take a look at Formatting Tabular Data. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
KenKundert
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The first example in Subclasing Quantities gives an example of how to do this:
If you are formatting quantities for output in tables, you might want to also take a look at Formatting Tabular Data.