View Single Post
Old 08-22-2022, 09:16 PM   #2
allanahk
Connoisseur
allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.allanahk ought to be getting tired of karma fortunes by now.
 
allanahk's Avatar
 
Posts: 71
Karma: 2202292
Join Date: Nov 2018
Device: Kobo Libra 2
Try this:

Code:
program:
	kudos = field('#kudos');
	hits = field('#hits');
	percent = multiply(kudos, 100);
	format_number(divide(percent, hits), '{0:.1f}')
It's always fun playing around with custom columns The calibre template language is a big help
allanahk is offline   Reply With Quote