You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
grvstick
changed the title
default_cell_formatter() in DataTable formats float in 2-digit scale, which is often undesirable.
default_cell_formatter() in DataTable formats float to 2-digit scale, which is often undesirable.
Aug 26, 2024
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 😄
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.
The text was updated successfully, but these errors were encountered: