N nanto Member Jan 15, 2018 #1 I want to round up a value in Template. For XF 1.x this works. Code: {xen:calc "ceil(5 / 2)"} Output: 3 It should work in XF 2.x. That obviously does not work. Code: {xF:calc "ceil(5 / 2)"}
I want to round up a value in Template. For XF 1.x this works. Code: {xen:calc "ceil(5 / 2)"} Output: 3 It should work in XF 2.x. That obviously does not work. Code: {xF:calc "ceil(5 / 2)"}
Chris D XenForo developer Staff member Jan 15, 2018 #2 In XF2 it would just be: Code: {{ ceil(5 / 2) }}