Template:Floor/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 2: | Line 2: | ||
This template is designed to typeset the {{w|floor function}} of a variable. | This template is designed to typeset the {{w|floor function}} of a variable. | ||
=== | === Parameters === | ||
; <code>{{{<nowiki />1}}}</code> | |||
: The expression to be enclosed. | |||
< | ; <code>{{{<nowiki />2}}}</code> | ||
: The scale factor, used to stretch or compress the floor symbols. | |||
=== Usage === | |||
{| class="wikitable" | |||
{{floor|''x''}} | |- | ||
! You type !! You get | |||
|- | |||
| {{plaincode|<nowiki>{{floor|''x''}}</nowiki>}} || {{floor|''x''}} | |||
|- | |||
| {{plaincode|<nowiki>{{floor|{{sfrac|''x''|''y''}}|1.8}}</nowiki>}} || {{floor|{{sfrac|''x''|''y''}}|1.8}} | |||
|} | |||
=== See also === | === See also === | ||
* [[Template:Ceil]] – for typesetting the {{w|ceiling function}}. | * [[Template:Ceil]] – for typesetting the {{w|ceiling function}}. |
Latest revision as of 16:00, 17 April 2025
This template is designed to typeset the floor function of a variable.
Parameters
{{{1}}}
- The expression to be enclosed.
{{{2}}}
- The scale factor, used to stretch or compress the floor symbols.
Usage
You type | You get |
---|---|
{{floor|''x''}} |
⌊x⌋ |
{{floor|{{sfrac|''x''|''y''}}|1.8}} |
⌊x/y⌋ |
See also
- Template:Ceil – for typesetting the ceiling function.