May be you should start with replacing a = (1/b) * c with a = c/b ? It’s not 10x, but still something.
If I were you, I’d create my own class Money, which would keep long dollars and long cents, and do math in it.
More Related Contents:
- Fastest way to determine if an integer’s square root is an integer
- Representing Monetary Values in Java [closed]
- Using BigDecimal to work with currencies
- Rounding BigDecimal to *always* have two decimal places
- Fast transcendent / trigonometric functions for Java
- Double vs. BigDecimal?
- Math.random() explanation
- Java Reflection Performance
- How to change the decimal separator of DecimalFormat from comma to dot/point?
- How to test if a double is an integer
- Java NIO FileChannel versus FileOutputstream performance / usefulness
- Optimization by Java Compiler
- How to set thousands separator in Java?
- What happens when you increment an integer beyond its max value?
- Convert seconds value to hours minutes seconds?
- How to do a fractional power on BigDecimal in Java?
- How does memory reordering help processors and compilers?
- Java BigDecimal: Round to the nearest whole value
- How to quickly determine if a method is overridden in Java
- Why does this subtraction not equal zero?
- BigDecimal – to use new or valueOf
- Why does dividing a float by an integer return 0.0?
- Removing trailing zeros from BigDecimal in Java
- Why defining class as final improves JVM performance?
- How to remove large if-else-if chain [duplicate]
- BigDecimal adding wrong value
- Converting different countrys currency to double using java [duplicate]
- How to display a number with always 2 decimal points using BigDecimal?
- How to Solve Equations with java?
- How do I map a BigDecimal in Hibernate so I get back the same scale I put in?