|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,271
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
a WAG (not a python coder)
Code:
format_number(v, template) |
|
|
|
| Advert | |
|
|
|
|
#3 | ||||
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
||||
|
|
|
|
|
#4 |
|
Member
![]() Posts: 17
Karma: 10
Join Date: Mar 2019
Device: none
|
thank you theducks & chaley
I cannot believe I was looking at the wrong documentation. I replaced + with & and it works now. Code:
program: floor(field("#floatx") / 333) & "a"
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Template: Extracting a number from a string | ownedbycats | Library Management | 8 | 06-25-2021 04:07 PM |
| How to access the url string in preprocess_html function? | Ramana | Recipes | 2 | 12-10-2018 10:15 AM |
| Using built-in template functions in a custom template function | ilovejedd | Library Management | 4 | 01-28-2018 01:20 PM |
| how to use re() function in Template Program Mode? | msciwoj | Library Management | 3 | 07-07-2016 04:55 PM |
| The operator >> is undefined for the argument type(s) float, float | twobob | Kindle Developer's Corner | 10 | 09-05-2012 01:50 PM |