DecimalFormat 中0和#的作用

DecimalFormat 用于 将一个 数字 进行 格式化 成 字符串


以 0 作为 格式化 占位符 的 例子:




/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

以 # 作为 格式化 占位符 的 例子






猜你喜欢

转载自blog.csdn.net/u013394527/article/details/78722095