Template:Floor/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
D page
 
ArrowHead294 (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
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.


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


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


gives
=== Usage ===
{| class="wikitable"
|-
! 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}}
|}


{{floor|''x''}}
=== See also ===
* [[Template:Ceil]] – for typesetting the {{w|ceiling function}}.

Latest revision as of 16:00, 17 April 2025

English Wikipedia has an article on:

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