NewsUnrealEdForumsFilesModsFragBU

Skin

BeyondUnreal


Personal tools

Difference between revisions of "Template:Trunc"

From Liandri Archives

Jump to: navigation, search
(workaround for expr function not supporting trunc operator)
 
m
Line 1: Line 1:
<onlyinclude>{{#if:{{#pos:{{{1}}}|.}}|{{#sub:{{{1}}}|0|{{#pos:{{{1}}}|.}}}}|{{{1}}}}}</onlyinclude>
+
<onlyinclude>{{#if:{{#pos:{{{1}}}|.}}|{{#sub:{{{1}}}|0|{{#expr:{{{2|-1}}}+1+{{#pos:{{{1}}}|.}}}}|{{{1}}}}}}}</onlyinclude>
 
{{documentation|content=Helper template for missing trunc expression in expr parser function.}}
 
{{documentation|content=Helper template for missing trunc expression in expr parser function.}}

Revision as of 06:15, 2 January 2011

Documentation

Helper template for missing trunc expression in expr parser function.