View Single Post
Old 04-11-2023, 09:41 AM   #568
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,054
Karma: 75568269
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
For a formula for various book statistics: is there a function similar to round, but rounding to a certain number of decimal points instead of a whole number?

EDIT: format_number works. New question: How do I add a line break? This returns as one long line.

Code:
program:
strcat(
	'Chapter Count:', $#chaptercount,
	'Page Count:', $#pagecount,
	'Average Pages per Chapter:', format_number((divide($#pagecount, $#chaptercount)), '{0:5.2f}')
	)

Last edited by ownedbycats; 04-11-2023 at 09:52 AM.
ownedbycats is offline   Reply With Quote