|
|
#1 |
|
Is that a sandwich?
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,319
Karma: 103930826
Join Date: Jun 2010
Device: Nook Glowlight Plus
|
Custom Column Help, Please
In the custom columns I created for word count, pages and gr rating the integers are left aligned. Is there a syntax to have them centered (like size column) or, if not, right aligned?
For integers with one significant figure, can we have them display three significant figures so 4 can be 4.00? This would appear neater. Thanks again. |
|
|
|
|
|
#2 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,270
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Is that a sandwich?
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,319
Karma: 103930826
Join Date: Jun 2010
Device: Nook Glowlight Plus
|
Thanks. Easy enough
![]() Anything on the significant figure question? |
|
|
|
|
|
#4 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,270
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
|
|
|
|
#5 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,028
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
You can probably get something that suits via the Format for numbers attribute
For ints and floats the custom column dialogue has a link to the official python formatting specs. I find it somewhat 'tl:dr'; this is good enough for me ==>> mkaz.tech – Python String Format Cookbook BR |
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Is that a sandwich?
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,319
Karma: 103930826
Join Date: Jun 2010
Device: Nook Glowlight Plus
|
Quote:
The format is {:.2f} to add two decimal places. |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom column returns value based on value of another custom column? | calvin-c | Calibre | 3 | 09-14-2013 03:24 PM |
| Custom yes/no column built from long text column | Philantrop | Library Management | 7 | 03-23-2013 08:44 PM |
| how to move value(s) of tag column to a custom made column | zoorakhan | Library Management | 0 | 12-08-2012 04:53 AM |
| custom date column from two state column | Dopedangel | Library Management | 7 | 01-03-2012 09:20 AM |
| Can custom book data be displayed in a custom column? | kiwidude | Development | 9 | 03-02-2011 06:35 AM |