Template:Ceil/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
Line 2: Line 2:
This template is designed to typeset the {{w|ceiling function}} of a variable.
This template is designed to typeset the {{w|ceiling function}} of a variable.


=== Usage ===
=== Parameters ===
Typing
; <code>{{{<nowiki />1}}}</code>
: The expression to be enclosed.


<pre>{{ceil|''x''}}</pre>
; <code>{{{<nowiki />2}}}</code>
: The scale factor, used to stretch or compress the ceiling symbols.


gives
=== Usage ===
 
{| class="wikitable"
{{ceil|''x''}}
|-
! You type !! You get
|-
| {{plaincode|<nowiki>{{ceil|''x''}}</nowiki>}} || {{ceil|''x''}}
|-
| {{plaincode|<nowiki>{{ceil|{{sfrac|''x''|''y''}}|1.8}}</nowiki>}} || {{ceil|{{sfrac|''x''|''y''}}|1.8}}
|}


=== See also ===
=== See also ===
* [[Template:Floor]] – for typesetting the {{w|floor function}}.
* [[Template:Floor]] – for typesetting the {{w|floor function}}.