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.

Humanize numbers?

See original GitHub issue
db> select count(distinct x) from tbl;


+-----------+
|     count |
|-----------|
| 634823020 |
+-----------+
SELECT 1
Time: 27823.563s (7 hours)

It would be nice to take a look at the number and be able to say whether we’re talking millions or billions here. How could I add special formatting for numbers?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
amjithcommented, Oct 13, 2016

@kosciej16 As mentioned by @foxyterkel you can set the format in your config file. The config file is usually located in your ~/.config/pgcli/config.

If you don’t have the following lines add them in and set the format to empty string:

https://github.com/dbcli/pgcli/blob/master/pgcli/pgclirc#L134

0reactions
foxyterkelcommented, Oct 13, 2016

@kosciej16 in main directory of the project there is pgclirc file where you can define default dcmlfmt.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Number - humanize
Returns number with the specified format, clamped between floor and ceil. If the number is larger than ceil or smaller than floor, then...
Read more >
3 Tips for Humanizing Data: Numbers Have Feelings Too
To help you, and your teammates, remember that numbers represent actual people, here are some quick ways you can humanize your data and...
Read more >
humanisethenumbers.online: Home
Welcome to the 'Humanise The Numbers' podcast. Here you'll find a whole series of podcast interviews with the leaders of accounting firms, firms...
Read more >
How to Humanize numbers with Python? - Tutorialspoint
How to Humanize numbers with Python? - If you want something that converts integers to words like 99 to ninety-nine, you have to...
Read more >
Humanize the Numbers (@humanizethenumbers) • Instagram ...
Humanize the Numbers. Socially engaged art project in Michigan prisons where U-M students + inmates photograph the direct impact and personal stories of ......
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