Path: Top -> Journal -> Jurnal ITB -> 2018 -> Vol 12, No 3

Performance Analysis of BigDecimal Arithmetic Operation in Java

Journal from gdlhub / 2019-05-04 09:20:07
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

PropertiNilai Properti
ID Publishergdlhub
OrganisasiITB
Nama KontakHerti Yani, S.Kom
AlamatJln. Jenderal Sudirman
KotaJambi
DaerahJambi
NegaraIndonesia
Telepon0741-35095
Fax0741-35093
E-mail Administratorelibrarystikom@gmail.com
E-mail CKOelibrarystikom@gmail.com

Print ...

Kontributor...

  • , Editor: sustriani

Download...