·java浮点数保留小数位数

结论:保留几位小数就就把double转化为string,保留x位,“%.xf”

 

 

posted @ 2022-03-22 19:27  huangs154  阅读(238)  评论(0)    收藏  举报