模板:Sum
此模板的文檔不存在、不全面或不能詳細描述其功能及/或其代碼中的參數。請幫助擴充並改進其文檔。 |
使用方式
此模板使用Lua語言: |
This template performs addition. For example, if you want to add 2 and 3, use this: {{Sum|2|3}}, which creates 5. It handles positive and negative integers, decimals, and fractions to thirteen decimal points:
- {{sum|-3|1}} produces: -2
- {{sum|1|0.5}} produces: 1.5
- {{sum|1|2/3}} produces: 1.6666666666667
It also handles some symbols such as "pi" (π):
- {{sum|pi|0}} produces 3.1415926535898
More than two parameters may be employed:
- {{sum|1|1|1}} produces 3
上述文件嵌入自Template:Sum/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |