BigDecimal Storage Parent

Efficient storage for BigDecimal in special cases

License

License

MIT
GroupId

GroupId

com.github.marschall
ArtifactId

ArtifactId

bigdecimal-storage-parent
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

pom
Description

Description

BigDecimal Storage Parent
Efficient storage for BigDecimal in special cases
Project URL

Project URL

https://github.com/marschall/bigdecimal-storage
Source Code Management

Source Code Management

https://github.com/marschall/bigdecimal-storage

Download bigdecimal-storage-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.marschall/bigdecimal-storage-parent/ -->
<dependency>
    <groupId>com.github.marschall</groupId>
    <artifactId>bigdecimal-storage-parent</artifactId>
    <version>0.1.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.marschall/bigdecimal-storage-parent/
implementation 'com.github.marschall:bigdecimal-storage-parent:0.1.0'
// https://jarcasting.com/artifacts/com.github.marschall/bigdecimal-storage-parent/
implementation ("com.github.marschall:bigdecimal-storage-parent:0.1.0")
'com.github.marschall:bigdecimal-storage-parent:pom:0.1.0'
<dependency org="com.github.marschall" name="bigdecimal-storage-parent" rev="0.1.0">
  <artifact name="bigdecimal-storage-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.marschall', module='bigdecimal-storage-parent', version='0.1.0')
)
libraryDependencies += "com.github.marschall" % "bigdecimal-storage-parent" % "0.1.0"
[com.github.marschall/bigdecimal-storage-parent "0.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • bigdecimal-storage
  • bigdecimal-storage-benchmark

BigDecimal Storage

Efficient storage for BigDecimal in special cases.

  • a 128 bit integer can hold a scale of up to 8 (4 bits) and a 120 bit mantissa
    • commonly has a footprint of 32 bytes
  • a 96 bit integer can hold a scale of up to 8 (4 bits) and a 84 bit mantissa
    • commonly has a footprint of 24 bytes
  • conversion methods between a long and a 64bit big decimal with 6 decimal places

Versions

Version
0.1.0