Formatting a double and not rounding off

前端 未结 5 1701
旧时难觅i
旧时难觅i 2020-12-18 21:23

I need to format (and not round off) a double to 2 decimal places.

I tried with:

String s1 = \"10.126\";
Double f1 = Double.pa         


        
5条回答
提交回复
热议问题