Template:Ceil: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Verdy p
mNo edit summary
meta>Verdy p
mNo edit summary
Line 3: Line 3:


; Usage<nowiki>:</nowiki>
; Usage<nowiki>:</nowiki>
: <tt><nowiki>{{</nowiki>ceil|</tt>''value''<tt><nowiki>}}</nowiki></tt>
: <tt><nowiki>{{</nowiki>{{PAGENAME}}|</tt>''value''<tt><nowiki>}}</nowiki></tt>


; Examples<nowiki>:</nowiki>
; Examples<nowiki>:</nowiki>
* <nowiki>{{ceil|3.9}}</nowiki> = {{ceil|3.9}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>3.9<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|3.9}}.
* <nowiki>{{ceil|3.5}}</nowiki> = {{ceil|3.5}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>3.5<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|3.5}}.
* <nowiki>{{ceil|3.1}}</nowiki> = {{ceil|3.1}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>3.1<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|3.1}}.
* <nowiki>{{ceil|3.0}}</nowiki> = {{ceil|3.0}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>3.0<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|3.0}}.
* <nowiki>{{ceil|1.0}}</nowiki> = {{ceil|1.0}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>1.0<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|1.0}}.
* <nowiki>{{ceil|0.9}}</nowiki> = {{ceil|0.9}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>0.9<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|0.9}}.
* <nowiki>{{ceil|0.5}}</nowiki> = {{ceil|0.5}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>0.5<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|0.5}}.
* <nowiki>{{ceil|0.1}}</nowiki> = {{ceil|0.1}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>0.1<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|0.1}}.
* <nowiki>{{ceil|0.0}}</nowiki> = {{ceil|0.0}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>0.0<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|0.0}}.
* <nowiki>{{ceil|-0.1}}</nowiki> = {{ceil|-0.1}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>-0.1<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|-0.1}}.
* <nowiki>{{ceil|-0.5}}</nowiki> = {{ceil|-0.5}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>-0.5<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|-0.5}}.
* <nowiki>{{ceil|-0.9}}</nowiki> = {{ceil|-0.9}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>-0.9<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|-0.9}}.
* <nowiki>{{ceil|-1.0}}</nowiki> = {{ceil|-1.0}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>-1.0<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|-1.0}}.
* <nowiki>{{ceil|-3.0}}</nowiki> = {{ceil|-3.0}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>-3.0<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|-3.0}}.
* <nowiki>{{ceil|-3.2}}</nowiki> = {{ceil|-3.2}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>-3.2<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|-3.2}}.
* <nowiki>{{ceil|-3.5}}</nowiki> = {{ceil|-3.5}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>-3.5<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|-3.5}}.
* <nowiki>{{ceil|-3.9}}</nowiki> = {{ceil|-3.9}}.
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki>-3.9<nowiki>}}</nowiki></tt> = {{{{PAGENAME}}|-3.9}}.


; See also<nowiki>:</nowiki>
; See also<nowiki>:</nowiki>
* [[Template:Floor]]
* [[Template:Floor]]


[[Category:Templates using ParserFunctions|Ceil]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Mathematical templates|Ceil]]
[[Category:Mathematical templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 22:30, 24 April 2006

Template:Template documentation Implements the mathematical ceil function.

Usage:
{{Ceil|value}}
Examples:
  • {{Ceil|3.9}} = 4.
  • {{Ceil|3.5}} = 4.
  • {{Ceil|3.1}} = 4.
  • {{Ceil|3.0}} = 3.
  • {{Ceil|1.0}} = 1.
  • {{Ceil|0.9}} = 1.
  • {{Ceil|0.5}} = 1.
  • {{Ceil|0.1}} = 1.
  • {{Ceil|0.0}} = 0.
  • {{Ceil|-0.1}} = 0.
  • {{Ceil|-0.5}} = 0.
  • {{Ceil|-0.9}} = 0.
  • {{Ceil|-1.0}} = -1.
  • {{Ceil|-3.0}} = -3.
  • {{Ceil|-3.2}} = -3.
  • {{Ceil|-3.5}} = -3.
  • {{Ceil|-3.9}} = -3.
See also: