Template:Floor: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{2|}}}|<span style="display: inline-block; transform: scale(1, {{{2}}});">⌊</span>|⌊}}{{{1}}}{{#if: {{{2|}}}|<span style="display: inline-block; transform: scale(1, {{{2}}});">⌋</span>|⌋}}</includeonly><noinclude> | <includeonly>{{#if: {{{2|}}}|<span style="display: inline-block; margin: {{#expr: 4 * ({{{2}}} - 1)}}px 0px {{#expr: 4 * ({{{2}}} - 1)}}px 0px; transform: scale(1, {{{2}}});">⌊</span>|⌊}}{{{1}}}{{#if: {{{2|}}}|<span style="display: inline-block; margin: {{#expr: 4 * ({{{2}}} - 1)}}px 0px {{#expr: 4 * ({{{2}}} - 1)}}px 0px; transform: scale(1, {{{2}}});">⌋</span>|⌋}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 18:53, 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.