题解 | #牛牛学说话之-浮点数#
牛牛学说话之-浮点数
https://www.nowcoder.com/practice/7c3bf58fac1a4eb69fa32c2d2c379bac
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); double d = in.nextDouble(); System.out.println(String.format("%.3f",d)); } }