Use a RegExp to format only the entire part. Validate that the decimal part exists and complete with 2 decimal places. Example: String numberFormat(double x) { ...
確定! 回上一頁