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
Hi, I have quick question about using currency columns. I've been trying to round so that it would only show the whole pound/dollar value and exclude the pence/cents. For example using colDef(currency = TRUE, digits = 0) on 31.12 would give £31, but currently it provides £31.12.
Is there are a reason it's an either or for currency and digits? I'm aware that you can customise the column format with JS, but with negative currencies it would be nice to avoid going that route.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I have quick question about using currency columns. I've been trying to round so that it would only show the whole pound/dollar value and exclude the pence/cents. For example using
colDef(currency = TRUE, digits = 0)
on31.12
would give£31
, but currently it provides£31.12
.Looking into the JS, I noticed this:
reactable/srcjs/columns.js
Lines 437 to 445 in 0e26958
Is there are a reason it's an either or for currency and digits? I'm aware that you can customise the column format with JS, but with negative currencies it would be nice to avoid going that route.
Beta Was this translation helpful? Give feedback.
All reactions