Template:Ceil: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Verdy p
mNo edit summary
 
Ookami (talk | contribs)
m 38 revisions imported
 
(37 intermediate revisions by 23 users not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr:({{{1}}})=(({{{1}}})round 0)|{{#expr:({{{1}}})+0}}|{{#ifexpr:({{{1}}})<0 and ({{{1}}})>-1|0|{{#expr:-((0.5-({{{1}}}))round 0)}}}}}}</includeonly><noinclude>{{Template documentation}}
{{{1}}}
Implements the mathematical [[ceil function]].
 
; Usage<nowiki>:</nowiki>
: <tt><nowiki>{{</nowiki>ceil|</tt>''value''<tt><nowiki>}}</nowiki></tt>
 
; Examples<nowiki>:</nowiki>
* <nowiki>{{ceil|3.9}}</nowiki> = {{ceil|3.9}}.
* <nowiki>{{ceil|3.5}}</nowiki> = {{ceil|3.5}}.
* <nowiki>{{ceil|3.1}}</nowiki> = {{ceil|3.1}}.
* <nowiki>{{ceil|3.0}}</nowiki> = {{ceil|3.0}}.
* <nowiki>{{ceil|1.0}}</nowiki> = {{ceil|1.0}}.
* <nowiki>{{ceil|0.9}}</nowiki> = {{ceil|0.9}}.
* <nowiki>{{ceil|0.5}}</nowiki> = {{ceil|0.5}}.
* <nowiki>{{ceil|0.1}}</nowiki> = {{ceil|0.1}}.
* <nowiki>{{ceil|0.0}}</nowiki> = {{ceil|0.0}}.
* <nowiki>{{ceil|-0.1}}</nowiki> = {{ceil|-0.1}}.
* <nowiki>{{ceil|-0.5}}</nowiki> = {{ceil|-0.5}}.
* <nowiki>{{ceil|-0.9}}</nowiki> = {{ceil|-0.9}}.
* <nowiki>{{ceil|-1.0}}</nowiki> = {{ceil|-1.0}}.
* <nowiki>{{ceil|-3.0}}</nowiki> = {{ceil|-3.0}}.
* <nowiki>{{ceil|-3.2}}</nowiki> = {{ceil|-3.2}}.
* <nowiki>{{ceil|-3.5}}</nowiki> = {{ceil|-3.5}}.
* <nowiki>{{ceil|-3.9}}</nowiki> = {{ceil|-3.9}}.
 
; See also<nowiki>:</nowiki>
* [[Template:Floor]]
 
[[Category:Templates using ParserFunctions]]
[[Category:Mathematical templates]]
</noinclude>

Latest revision as of 13:19, 3 September 2020

⌈{{{1}}}⌉