View Single Post
Old 04-16-2022, 07:26 AM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by annoywife View Post
I feel like I am missing something very basic here: I’ve added a custom column with Column Type “Floating point numbers”, but I can only enter a max of two decimal places via the GUI. However, when I write directly to the database via a plugin/script, the field is capable of holding many more (e.g. when setting the custom column to format {0:.13f}, I can see precision to 13 decimal places).

Is there any way for me to enter more than two decimal places manually via the GUI?
No. The float field GUI widgets are limited to 2 decimal places. You can probably get around this using the Action Chains plugin instead of the built-in GUI widgets to present an edit widget then store the result in the database.
Quote:
Originally Posted by theducks View Post
13 is the whole number portion

13.3F would have 3 decimal places (and 9 whole digits)
The formatter does what @theducks says. For example, this template
Code:
{:>13.3f:'300/2.1'}
produces 142.857.

Quote:
Originally Posted by BetterRed View Post
R U Sure ?
Attachment 193255

The Reading Ease value was calculated by Count Pages.

BR
You are mixing things. The format template is used when displaying the number. The 2-decimal-digit format is used in edit widgets. See the attachments.
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.jpg
Views:	54
Size:	30.1 KB
ID:	193264  
Attached Images
  
chaley is offline   Reply With Quote