bigdecimal
Bigdecimal for financial calculations and non-terminating computations
I\'m sure this would be a simple question to answer but I can\'t for the life of me decide what has to be done. So here\'s it: assuming we follow the \"best practice\" of using BigDecimal for financia[详细]
2023-04-10 02:10 分类:问答BigDecimal - material decimal places
I have a BigDecimal value and I want to know if the number of decimal places it has is outside a boundary.[详细]
2023-04-10 01:31 分类:问答How to fold left a list of BigDecimal? ("overloaded method + cannot be applied")
I want to write a short functional sum-function for a List of BigDecimal and tried with: def sum(xs: List[BigDecimal]): BigDecimal = (0 /: xs) (_ + _)[详细]
2023-04-07 08:46 分类:问答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 base开发者_运维问答d columns to not use floating point math.On the Java side this means using[详细]
2023-04-07 04:50 分类:问答BigDecimal Problem in java
BigDecimal bd= new BigDecimal(\"00.0000000000\"); //now bd format to 0E-10 if(BigDecimal.ZE开发者_如何转开发RO.equals(bd) || bd.equals(\"0E-10\"))[详细]
2023-04-06 17:35 分类:问答How to tell jaxb to truncate a BigDecimal when marshalling to xml?
I have these two classes: @XmlAccessorType(XmlAccessType.FIELD) public class OpportunityLocation { @XmlElement[详细]
2023-04-06 04:10 分类:问答Strange rounding behaviour with BigDecimal?
What would be printed to console and why? 1. BigDecimal BigDecimalNum = new BigDecimal(\"0.0774\"开发者_运维知识库);[详细]
2023-04-06 02:58 分类:问答Convert cents into dollar string in Ruby without use of BigDecimal
I want to con开发者_如何学Pythonvert from cents to dollars correctly in Ruby. I will never have to work with fractions of cents.[详细]
2023-04-05 11:35 分类:问答form not saving to database in rails
I currently have a form: <%= f.label(:price) %> <br/> <%= f.text_field(:price, :value => number_to_currency(@object.price)) %>[详细]
2023-04-03 15:59 分类:问答Invoking a Java method from Ruby that takes a Java primitive double with a Ruby BigDecimal
I\'m getting an error when attempting to call a method on a Java object from JRuby when the Java method\'s signature has a primitive double and the parameter I pass is a Ruby BigDecimal.Is there any i[详细]
2023-04-03 15:35 分类:问答