question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: significant figures

See original GitHub issue

This was requested in #117, which was closed by #127 that provides padding instead of significant figures.

Significant figures are useful. Let’s say you want to see 1.34GB instead of 1GB but don’t want to see 724.16MB instead of 724MB.

For instance, GitHub Releases is using significant figures:

screenshot

I open this issue because #117 is closed. A new issue is good for tracking its status and making potential contributors aware of it.

https://github.com/avoidwork/filesize.js/issues/117#issuecomment-863161844

I know we need a PR or there won’t be this feature, so I’m not requesting the maintainer to provide this feature 😃

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
flleeppyycommented, Dec 21, 2021

The implementatiomn doesn’t seem to be working at all. image

1reaction
ouuancommented, Jun 30, 2021

Thanks for implementing this. I’m now using the precision option alone and it works fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rounding to significant figures - feature request for math library
The python standard library doesn't have any function (that I am aware of) to round a number to a number of significant figures....
Read more >
How to Collect and Manage Feature Requests in SaaS
In this article, we'll cover several methods for collecting and managing feature requests to meet customer expectations for your SaaS.
Read more >
Increase your chances of a successful feature request
Increasing your chances of a successful feature request! Insights. At yieldHUB we find that our best innovations come from customer requests.
Read more >
Specify number of significant figures, not just decimal places.
Have the option to display a specified number of significant figures instead of number of decimal places.
Read more >
Displaying more significant figures on worksheet trends ...
I'm trying to display large values with more significant figures. For instance, annual reporting of large quantities via scorecard only ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found