Path: Top -> Journal -> Jurnal ITB -> 2018 -> Vol 12, No 3
Performance Analysis of BigDecimal Arithmetic Operation in Java
Oleh : Jos Timanta Tarigan, Elviawaty M. Zamzami, Cindy Laurent Ginting, ITB
Dibuat : 2019-05-04, dengan 1 file
Keyword : BigDecimal arithmetic operation, floating-point arithmetic, numerical programming, optimization, programming language
Url : http://journals.itb.ac.id/index.php/jictra/article/view/7278
Sumber pengambilan dokumen : WEB
The Java programming language provides binary floating-point primitive data types such as float and double to represent decimal numbers. However, these data types cannot represent decimal numbers with complete accuracy, which may cause precision errors while performing calculations. To achieve better precision, Java provides the BigDecimal class. Unlike float and double, which use approximation, this class is able to represent the exact value of a decimal number. However, it comes with a drawback: BigDecimal is treated as an object and requires additional CPU and memory usage to operate with. In this paper, statistical data are presented of performance impact on using BigDecimal compared to the double data type. As test cases, common mathematical processes were used, such as calculating mean value, sorting, and multiplying matrices.
Beri Komentar ?#(0) | Bookmark
Properti | Nilai Properti |
---|---|
ID Publisher | gdlhub |
Organisasi | ITB |
Nama Kontak | Herti Yani, S.Kom |
Alamat | Jln. Jenderal Sudirman |
Kota | Jambi |
Daerah | Jambi |
Negara | Indonesia |
Telepon | 0741-35095 |
Fax | 0741-35093 |
E-mail Administrator | elibrarystikom@gmail.com |
E-mail CKO | elibrarystikom@gmail.com |
Print ...
Kontributor...
- , Editor: sustriani
Download...
Download hanya untuk member.
7278-29126-2-PB
File : 7278-29126-2-PB.pdf
(174543 bytes)