Template:Ceil: Difference between revisions

From Vigyanwiki
Template>Verdy p
mNo edit summary
m (39 revisions imported from alpha:Template:Ceil)
 
(38 intermediate revisions by 26 users not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr:({{{1}}})=(({{{1}}})round 0)|{{#expr:{{{1}}}}}|{{#ifexpr:({{{1}}})<0 and ({{{1}}})>-1|0|{{#expr:-((-({{{1}}})-0.5)round 0)}}}}}}</includeonly><noinclude>{{Template documentation}}
{{{1}}}<noinclude>{{Documentation|content=
Implements the mathematical [[ceil function]].
== Description ==
Displays the parameter wrapped in ceiling symbols. This template is for display, not calculation.


; Usage<nowiki>:</nowiki>
== Examples ==
: <tt><nowiki>{{</nowiki>ceil|</tt>''value''<tt><nowiki>}}</nowiki></tt>
{{demo|<nowiki>{{Ceil|45.23}}</nowiki>}}
{{demo|<nowiki>{{Ceil|''x''}}</nowiki>}}


; Examples<nowiki>:</nowiki>
== See also ==
* <nowiki>{{ceil|3.9}}</nowiki> = {{ceil|3.9}}.
{{Math templates|notation}}
* <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>
[[Category:Mathematical formatting templates]]
* [[Template:Floor]]
}}</noinclude>
 
[[Category:Templates using ParserFunctions|Ceil]]
[[Category:Mathematical templates|Ceil]]
</noinclude>

Latest revision as of 11:35, 27 July 2023

⌈{{{1}}}⌉

Template documentation

Description

Displays the parameter wrapped in ceiling symbols. This template is for display, not calculation.

Examples

Template:Demo Template:Demo

See also

[[Category:Template documentation pages{{#translation:}}]]