< 模板:Floor
Zeroclanzhang(讨论 | 贡献) (创建页面,内容为“{{Documentation subpage}} == Usage == {{TemplateData header}} <templatedata> { "params": { "1": { "label": "Operand", "description": "The operand of the floor function", "example": "π", "type": "line", "required": true }, "2": { "label": "Font size", "description": "A valid CSS font size, applied to the bars only. Typically should be given in \"em\".", "type": "string", "default": "Default is \"1em\", i.e. the same as the sur…”) |
(没有差异)
|
2024年1月21日 (日) 23:20的最新版本
| This is a documentation subpage for 模板:Floor. It may contain usage information, categories and other content that is not part of the original 模板 page. |
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.
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| Operand | 1 | The operand of the floor function
| 单行文本 | 必需 |
| Font size | 2 | A valid CSS font size, applied to the bars only. Typically should be given in "em".
| 字符串 | 可选 |
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