Obsidian Tracker and truncating the decimal from sum()


Is there a way for me to truncate the decimal number from the number sum() returns in a tracker-query? I’m keeping a track of how many cigarettes I smoke on daily basis (trying to taper down and quit :P) and on my weekly note I use Obsidian Tracker to sum them up.

searchType: dvField
searchTarget: log-cigarettes
folder: Journal/Daily
startDate: sometemplatercodehere
endDate: moretemplatercodehere
template: "weekly amount: {{sum()}}"

That’s the code I use - trunc() isn’t recognized by Tracker. Obviously the decimal isn’t that big of a deal but I was just wondering what’s the easiest way to get rid of it. Thanks in advance!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.