Replies: 2 comments
-
@grvstick It likely was a virus. The original plan was to expose this function to end users, but that never came to fruition. Hopefully DataTable can get a bit of love soon to give more control over things like this 😄 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just came to this discussion because I noticed the same thing. Ideally we'd like to specify the formatting for each column or each row, but at least just avoid formatting floats so they can get printed in their entirety is a good first step. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Code
textual/src/textual/widgets/_data_table.py
Line 197 in db3fda9
This defaults all floats to be in 2-digit scale. I think it would be better to change this to simple float-to-str conversion, so that the user can decide the scale. If there is a specific reason to limit the float type scales, the scale should be left to maximum to the limits.
Beta Was this translation helpful? Give feedback.
All reactions