Top "Bigdecimal" questions

BigDecimal is a numeric object type in Java that represents decimal numbers with arbitrary precision.

What type would you map BigDecimal in Java/Hibernate in MySQL?

After going through the previous develop's trainwreck of code I realized I need to move all of the money based …

java mysql hibernate numbers bigdecimal
MongoDB - What about Decimal type of value?

I am currently learning and applying MongoDB for a small financial related project. When I read MongoDB in Action, it …

mongodb decimal bigdecimal bson
Java, BigDecimal. Problems with division

I'm trying to calculate a percentage "factor". That is, given a 20%, convert it into 0.2 (my intention is to later multiply …

java division bigdecimal
data type to represent a big decimal in java

Which data type is apt to represent a decimal number like "10364055.81". If tried using double: double d = 10364055.81; But when I …

java bigdecimal jdk1.4
Representing Monetary Values in Java

I understand that BigDecimal is recommended best practice for representing monetary values in Java. What do you use? Is there …

java currency bigdecimal
Check if BigDecimal is integer value

Can anyone recommend an efficient way of determining whether a BigDecimal is an integer value in the mathematical sense? At …

java bigdecimal
Java BigDecimal can have comma instead dot?

I have a string value that I want to assign to a BigDecimal. When I update the decimal value with …

java decimal bigdecimal
JUnit Assert with BigDecimal

I want to use assert between 2 two decimal, I use this: BigDecimal bd1 = new BigDecimal (1000); BigDecimal bd2 = new BigDecimal (1000); org.…

java junit assert bigdecimal
How to convert BigInteger to BigDecimal?

Is there any way to convert a BigInteger into a BigDecimal? I know you can go from a BigDecimal to …

java biginteger bigdecimal
Java double vs BigDecimal for latitude/longitude

When storing latitudes/longitudes which are typically of the format: 44.087585 (i.e. max 2 numbers before the dot and 6dp) do …

java double geospatial latitude-longitude bigdecimal