Template talk:Rounddown
Add topic- Talk page for
{{Rounddown}}
and{{Roundtozero}}
Tests[edit]
{{Roundtozero|-2/3}}
= 0
Now it's like REXX trunc, fine.
{{Roundtozero|-1/3}}
= 0
That wanted to return -0 instead of 0. template:Zero (edit•talk•links•history) can fix it, but apparently for an expression x it's also okay to use 0+(x).