The toFixed method automatically discards the insignificant trailing zeroes. After that, we use parseFloat to convert the number string back to a number.
確定! 回上一頁