Number.prototype.toFixed() - JavaScript | MDN

toFixed() メソッドは、数を固定小数点表記を用いて整形します。