Melola Discovery

← Melola Discovery

Jurnal SINTA 2

Performance Analysis of BigDecimal Arithmetic Operation in Java

Journal of ICT Research and Applications (JICTRA) · Vol. 12 No. 3 (2018) · pp. 267–279

DOI
10.5614/itbj.ict.res.appl.2018.12.3.5
ISSN
2338-5499, 2337-5787
Published
2018-12-31
Publisher
DRI - ITB
Language
eng

Abstract

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.

Keywords

Collaboration network of the authors

3 authors · 3 co-authorship links

Hover or tap a name to highlight its co-authors. Double-click to open the author's page.

  • Universitas Sumatera Utara
  • Different organisations
  • Same organisation
  • Affiliation unknown
  • Thicker line = more joint articles · bigger circle = more articles
Show as table
Co-authorOrganisationJoint articles

Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.

Metadata source: OAI-PMH (metadata jurnal) https://journals.itb.ac.id/index.php/jictra/oai, first harvested 26 Okt 2026, last seen 26 Okt 2026.
Original metadata (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en-US">Performance Analysis of BigDecimal Arithmetic Operation in Java</dc:title>
	<dc:creator>Tarigan, Jos Timanta</dc:creator>
	<dc:creator>Zamzami, Elviawaty M.</dc:creator>
	<dc:creator>Ginting, Cindy Laurent</dc:creator>
	<dc:subject xml:lang="en-US">BigDecimal arithmetic operation</dc:subject>
	<dc:subject xml:lang="en-US">floating-point arithmetic</dc:subject>
	<dc:subject xml:lang="en-US">numerical programming</dc:subject>
	<dc:subject xml:lang="en-US">optimization</dc:subject>
	<dc:subject xml:lang="en-US">programming language</dc:subject>
	<dc:description xml:lang="en-US">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.</dc:description>
	<dc:publisher xml:lang="en-US">DRI - ITB</dc:publisher>
	<dc:date>2018-12-31</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:type xml:lang="en-US">Peer-reviewed Article</dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://journals.itb.ac.id/index.php/jictra/article/view/7278</dc:identifier>
	<dc:identifier>10.5614/itbj.ict.res.appl.2018.12.3.5</dc:identifier>
	<dc:source xml:lang="en-US">Journal of ICT Research and Applications; Vol. 12 No. 3 (2018); 267-279</dc:source>
	<dc:source>2338-5499</dc:source>
	<dc:source>2337-5787</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://journals.itb.ac.id/index.php/jictra/article/view/7278/3848</dc:relation>
</oai_dc:dc>