I'm using Kotlin/JVM 1.8.0 and Kotlinx Serialization 1.4.1. I need to encode a java.math.BigDecimal and java.math.BigInteger to JSON. I'm using BigD ...
I'm using Kotlin/JVM 1.8.0 and Kotlinx Serialization 1.4.1. I need to encode a java.math.BigDecimal and java.math.BigInteger to JSON. I'm using BigD ...
It is requested to sort the list below from smallest to largest. Array input: [-100, 50, 0, 56.6, 90, 0.12, .12, 02.34, 000.000] My Code: I wrote ...
I have to format values from a database to display this values in a frontend. The database values looks like this: 0.0009 and the output have to look ...
I expect the value to be 12334555578912349.13 but output is 123345555789123504.00 How can I prevent it from rounding? ...
I have a JSON seriliazer which serializes a BigDecimal in the way presented in this SO answer: It is used in my POJO: Requirements: I have t ...
Using java 11 and Intellij Idea. I'm in the situation where I get a string of data from an external system and need to reformat this. In the current ...
I need to add BigDecimals in Hadoop. I'm currently using Apache Pig BigDecimalWritable but Pig seems to be completely outdated. This version is 5 y ...
I need to get a balance sum from a list of type List<TransactionSumView>, which I'm receiving from the database. My TransactionSumView interfac ...
My question is basically the following: When I use a value with BigDecimal, how do I append zeros in front of a random number? Say I want to have a n ...
I need to cast numbers from a column with StringType to a DecimalType. The Decimal type should have a predefined precision and scale, for example, Dec ...
I think I have found a bug: I had to use the following alternative: This bug (if it is so) is very dangerous in my opinion. ...
I have some data in JTable. I attempted to get sum of third column cell values, which matches with first column cell values are equal. As example T10. ...
stripTrailingZeros() Can I obtain 40 in the second example by using stripTrailingZeros? I mean, I want zero which is after the decimal point to dis ...
As trainee in Java I need to find how to reduce the value of a BigDecimal variable with the value of a Map, thats also BigDecimal.. OK, for example: I ...
I have some BigDecimal values in database, like 10000.00, 12357.87 etc. Now I'm trying to get these values by using GET API REST in spring boot, but ...
I am trying to round off BigDecimal in Java below is the code that I executed So the output are prec1 = 49.32 and prec2 = 49.33 for my use case I n ...
I wish to sum up two numbers. They are BigDecimals. How can I fix it to get the result 0.0000000070 as BigDecimal? ...
I am using Hibernate envers 5.2.10.Final version to audit any changes on entity. And in entity class, there is BigDecimal data type fields also exists ...
i have this big problem, i have a input where i format my amounts like this. 15,550.55, the problem is that once i submit that value it store it as 1 ...