模板:Floor/doc

来自决策链云智库

Usage

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Floor in articles based on its TemplateData.

TemplateData for Floor

Displays the parameter wrapped in floor symbols. This template is for display, not calculation.

模板参数

此模板首选参数不换行的行内格式。

参数描述类型状态
Operand1

The operand of the floor function

示例值
π
单行文本必需
Font size2

A valid CSS font size, applied to the bars only. Typically should be given in "em".

默认值
Default is "1em", i.e. the same as the surrounding text.
字符串可选

Examples

  • {{floor|45.23}}45.23
  • {{floor|''x''}}x
  • {{floor|{{sfrac|2''a''|''b''}}}}2a/b
  • {{floor|{{sfrac|2''a''|''b''}}|2em}}2a/b
  • {{floor|{{sfrac|2''a''|''b''}}|larger}}2a/b
  • {{floor|{{sfrac|2''a''|''b''}}|large}}2a/b
  • {{math|{{floor|{{sfrac|2''a''|''b''}}}}}}2a/b
  • {{bigmath|{{floor|{{sfrac|2''a''|''b''}}}}}}2a/b

See also