Lack of interest Add template function "round"

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Steffen

Well-known member
The template functions "floor" and "ceil" exist but "round" is missing. I'm trying to compute the number of days until a warning / ban expires and a "round" function would be useful.

Code:
<xf:set var="$expiryDays" value="{{ round(($ban.end_date - $ban.ban_date) / 86400) }}" />
 
Upvote 1
This suggestion has been closed. Votes are no longer accepted.
Top Bottom