signif() + datatable() bug

Open
#1,127 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, r
Domain
frontend, web-dev

Research direction

Start by reproducing the supplied DT::datatable(signif(...)) example with R 4.3.2 and DT 0.27, comparing the expected and actual table output. Investigate the DT::datatable entry point and determine what change makes the very small value render as expected; done means the example displays correctly without breaking ordinary values.

Written by the indexing model from the issue text.

Description

Hi devs,

Reporting following bug, using R v4.3.2 and DT v0.27.

DT::datatable(signif(data.frame(3.234866680561728e-127), 3))

I expected:

image

But got:

image

Any idea what causes this?

Dominant language
JavaScript
Stars
621
Forks
177
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rstudio/DT

All issues in rstudio/DT

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.