Template:Floor: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Verdy p
m there was a bug for negative numbers, corrected and tested, compacting
Ookami (talk | contribs)
m 61 revisions imported
 
(57 intermediate revisions by 23 users not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr:{{{1}}}=({{{1}}} round 0)|{{#expr:{{{1}}}+0}}|{{#expr:({{{1}}} - 0.5) round 0}}}}</includeonly><noinclude>
{{{1}}}⌋<noinclude>{{Documentation|content=
Implements the [[floor function]].
== Description ==
Displays the parameter wrapped in floor symbols. This template is for display, not calculation.


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


Examples:
== 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}}.


[[Category:Templates using ParserFunctions]]
[[Category:Mathematical formatting templates]]
[[Category:Mathematical templates]]
}}</noinclude>
</noinclude>

Latest revision as of 13:19, 3 September 2020

⌊{{{1}}}⌋