rhandsontable icon indicating copy to clipboard operation
rhandsontable copied to clipboard

[Urgent] format = "0%" not showing properly

Open cvaldezerea opened this issue 3 years ago • 2 comments

some percents are added a lot of decimals, how i can solve this.

check this

rhandsontable::rhandsontable(tibble::tibble(p = c(1:100/100))) %>% rhandsontable::hot_col(1, format = "0%")

And this is how is seen. How can i solve this big issue

image

cvaldezerea avatar May 28 '21 13:05 cvaldezerea

@cvaldezerea, I don't understand why, but the line below works for me. I suspect it has something to do with floating point precision. If you have figured this out, I'd love to know what's going on.

hot_col(1, format = "[.]0%")

rliehrv avatar Jun 26 '21 18:06 rliehrv

Thank you @rliehrv , adding the [.] worked

cvaldezerea avatar Jul 16 '21 14:07 cvaldezerea