Template:計算
Jump to navigation
Jump to search
- 第一參數為要運算的運算式,第二參數為運算結果要四捨五入到小數第幾位,如
{{計算|sqrt(i)|4}}
→「{{safesubst:#if:4|Template:ExprAll|{{safesubst:{{safesubst:#if:4|void|複變運算}}|1=sqrt(i)|use math=no|should math=no|useOtherModule=no|number class=c|show math=no }} }}」。與Template:Tl稍有不同之處在於,此模板支援輸出round,而Template:Tl則否。
- Template:注意請勿使用Template:Tlxm替代!會導致有使用複數 (數學)運算的條目全數NaN