We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Software Engineering/Performance Analysis of BigDecimal Arithmetic Operation in Java
PeriodicalsSoftware Engineering

Performance Analysis of BigDecimal Arithmetic Operation in Java

Checking your access to this record.

Abstract & Overview

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.

Cite this record

Jos Timanta Tarigan, Elviawaty Muisa Zamzami, Cindy Laurent Ginting (2018). Performance Analysis of BigDecimal Arithmetic Operation in Java. Journal of ICT Research and Applications, 12(3), 267–267. https://doi.org/10.5614/itbj.ict.res.appl.2018.12.3.5

Copy in another style

Tarigan, J. T., Zamzami, E. M., & Ginting, C. L. (2018). Performance Analysis of BigDecimal Arithmetic Operation in Java. Journal of ICT Research and Applications, 12(3), 267–267. https://doi.org/10.5614/itbj.ict.res.appl.2018.12.3.5
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.