Template:Floor: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Verdy p
mNo edit summary
Ookami (talk | contribs)
m 61 revisions imported
 
(53 intermediate revisions by 23 users not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr:({{{1}}})=(({{{1}}})round 0)|{{#expr:({{{1}}})+0}}|{{#ifexpr:({{{1}}})>0 and ({{{1}}})<1|0|{{#expr:(({{{1}}})-0.5)round 0}}}}}}</includeonly><noinclude>{{Template documentation}}
{{{1}}}<noinclude>{{Documentation|content=
Implements the mathematical [[floor function]].
== Description ==
Displays the parameter wrapped in floor symbols. This template is for display, not calculation.


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


; Examples<nowiki>:</nowiki>
== See also ==
* <nowiki>{{floor|3.9}}</nowiki> = {{floor|3.9}}.
{{Math templates|notation}}
* <nowiki>{{floor|3.5}}</nowiki> = {{floor|3.5}}.
* <nowiki>{{floor|3.1}}</nowiki> = {{floor|3.1}}.
* <nowiki>{{floor|3.0}}</nowiki> = {{floor|3.0}}.
* <nowiki>{{floor|1.0}}</nowiki> = {{floor|1.0}}.
* <nowiki>{{floor|0.9}}</nowiki> = {{floor|0.9}}.
* <nowiki>{{floor|0.5}}</nowiki> = {{floor|0.5}}.
* <nowiki>{{floor|0.1}}</nowiki> = {{floor|0.1}}.
* <nowiki>{{floor|0.0}}</nowiki> = {{floor|0.0}}.
* <nowiki>{{floor|-0.1}}</nowiki> = {{floor|-0.1}}.
* <nowiki>{{floor|-0.5}}</nowiki> = {{floor|-0.5}}.
* <nowiki>{{floor|-0.9}}</nowiki> = {{floor|-0.9}}.
* <nowiki>{{floor|-1.0}}</nowiki> = {{floor|-1.0}}.
* <nowiki>{{floor|-3.0}}</nowiki> = {{floor|-3.0}}.
* <nowiki>{{floor|-3.2}}</nowiki> = {{floor|-3.2}}.
* <nowiki>{{floor|-3.5}}</nowiki> = {{floor|-3.5}}.
* <nowiki>{{floor|-3.9}}</nowiki> = {{floor|-3.9}}.


; See also<nowiki>:</nowiki>
[[Category:Mathematical formatting templates]]
* [[Template:Ceil]]
}}</noinclude>
 
[[Category:Templates using ParserFunctions]]
[[Category:Mathematical templates]]
</noinclude>

Latest revision as of 13:19, 3 September 2020

⌊{{{1}}}⌋