1. Trang chủ
  2. » Công Nghệ Thông Tin

29 bài học thư viện xử lý dữ liệu số

4 144 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 4
Dung lượng 0,91 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Thư viện xử lý dữ liệu sốBài Học...  Thư viện xử lý dữ liệu số: DecimalFormatDecimalFormat dcf =new DecimalFormat"#.##"; double x=3.0/8; System.out.printlnx; System.out.printlndcf .form

Trang 1

Thư viện xử lý dữ liệu số

Bài Học

Trang 2

 Thư viện xử lý dữ liệu số: DecimalFormat

DecimalFormat dcf =new DecimalFormat("#.##");

double x=3.0/8;

System.out.println(x);

System.out.println(dcf format(x));

Trang 3

DecimalFormatSymbols dfs=

new DecimalFormatSymbols(Locale.getDefault());

dfs.setGroupingSeparator( ',' );

int x=1243532523;

dcf.setDecimalFormatSymbols(dfs);

System out println(dcf.format(x));

1,243,532,523

Trang 4

is easy!

Ngày đăng: 12/07/2018, 16:22

TỪ KHÓA LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm

w