09-21-2024, 09:39 PM | #721 |
Custom User Title
Posts: 9,388
Karma: 64441811
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
list_filter() would definitely be more intuitive and ist_add() also being faster would be an advantage.
|
10-12-2024, 04:43 PM | #722 |
Custom User Title
Posts: 9,388
Karma: 64441811
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Arithmetic - how do I apply a format to the results?
e.g. program: divide($$#purchasecost, 1.15) returns 7.9913043478260875 when I just need 7.99. ({0:,.2f}) Last edited by ownedbycats; 10-12-2024 at 05:44 PM. |
10-12-2024, 05:56 PM | #723 | |
Grand Sorcerer
Posts: 11,970
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Also, $$#purchasecost/1.15 is faster than using the divide() function. |
|
10-17-2024, 12:07 AM | #724 |
Custom User Title
Posts: 9,388
Karma: 64441811
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Another question: After deleting an integer column (was converting it to a composite), I noticed that a template that checked the integer still worked, but treated everything as a '0'. Is this intentional?
Last edited by ownedbycats; 10-17-2024 at 12:09 AM. |
Yesterday, 05:38 PM | #725 |
Grand Sorcerer
Posts: 11,970
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Yes, assuming you are using raw_field() or $$ to fetch the value. It returns None for columns that don't exist. None is interpreted as zero in an arithmetic context. Using field() or $ will throw an error
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library Management: various questions not worth their own thread | ownedbycats | Library Management | 159 | Yesterday 05:40 PM |
[Metadata Source Plugin] Questions regarding parse select, docs and ref templates | Boilerplate4U | Development | 13 | 07-07-2020 02:35 AM |
Questions on Kobo [Interfered with another thread topic] | spdavies | Kobo Reader | 8 | 10-12-2014 11:37 AM |
[OLD Thread] Some questions before buying the fire. | darthreader13 | Kindle Fire | 7 | 05-10-2013 09:19 PM |
Thread management questions | meme | Feedback | 6 | 01-31-2011 05:07 PM |