Template:Format price/digits
1
このサブテンプレートは入力された数値を有効数字3桁で返すものです。入力される数値は0 – 999.9999.....の間である必要があります。範囲外の数値が入力された場合に返される値は制御できていません。{{Format price}}の簡易版とご理解ください。 This sub-template takes a number and reformats it to only 3 digits and a dot (if needed), provided it's in the 0–
使い方
編集{{Format price/digits|数値}}
使用例
編集{{Format price/digits|0}}
= 0{{Format price/digits|0.12345}}
= 0.12{{Format price/digits|1.23456}}
= 1.23{{Format price/digits|12.3456}}
= 12.3{{Format price/digits|123.456}}
= 123{{Format price/digits|1234.56}}
= 1235{{Format price/digits|-234.56}}
= -234.56
関連項目
編集- {{Format price}}