bigdecimal
Clarification on behavior of BigDecimal.stripTrailingZeroes()
Why the following code prints 0.00 and not 0? BigDecimal big = new BigDecimal(\"0.00\"); big = big.stripTrailingZeros();[详细]
2023-02-15 11:22 分类:问答NSDecimalNumber for big number operations on iPhone
I need to use big number for precision in my application, float or double are not enough. I also have int and float numbers, and I have to do operations with all of them.[详细]
2023-02-14 04:12 分类:问答Converting string to bigdecimal in ireport
How do I convert following String output into BigDecimal? new java.text.DecimalFormat(\"#,开发者_StackOverflow##0.00\").format([详细]
2023-02-11 02:49 分类:问答Converting from String to BigDecimal to do math on currency
I am working on a project that requires some simple math to be performed on currency, however it arrives in the form of a String.I am new to Java/Android so I am looking for help in converting from a[详细]
2023-02-10 04:44 分类:问答How to enforce the number of significant digits of a BigDecimal
I defined a decimal field with a scale / significant digits of 4 in mysql (ex. 10.0001 ). ActiveRecord returns it as a BigDecimal.[详细]
2023-02-10 02:37 分类:问答unexpected exception java.math.BigDecimal running on IBM WebSphere
Running Java app开发者_运维百科lication on IBM WebSphere caused such exception: Caused by: java.lang.NullPointerException[详细]
2023-02-08 20:43 分类:问答Java BigDecimal alternative library
This may strike as particularly odd but I must compile several 开发者_如何学JAVAnew code against GCJ; that doesn\'t support Java\'s BigDecimal.[详细]
2023-02-06 13:21 分类:问答What's the best way to round a Ruby BigDecimal number to the nearest 0.05?
Ruby\'s BigDecimal #round method rounds numbers off to the nearest integer (and returns it as a fixnum frustratingly). Is there a built in method to allo开发者_开发百科w rounding to the nearest 0.05?[详细]
2023-02-06 02:34 分类:问答Why is there an implicit conversion from Float/Double to BigDecimal, but not from String?
Although the situation of conversion from Doubles to BigDecimals has improved a bit compared to Java scala> new java.math.BigDecimal(0.2)[详细]
2023-02-04 19:02 分类:问答Java run-time error " Non-terminating decimal expansion; no exact representable decimal result" in BigDecimal class
it give me an error when choosing \"Positive improper integration\"or\"Negative improperintegration\"[详细]
2023-02-04 17:38 分类:问答