Joda-Money
decimal4j
Our great sponsors
Joda-Money | decimal4j | |
---|---|---|
3 | 2 | |
637 | 141 | |
0.3% | -1.4% | |
6.3 | 4.2 | |
6 months ago | 5 months ago | |
Java | Java | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Joda-Money
- 64-Bit Bank Balances ‘Ought to Be Enough for Anybody’?
-
[Production code] The previous dev thought it was ok to use floating point variables for money
Nice, I'd not heard of this before. Looks like it has more traction than Java Money (JSR-354).
-
please for the love of god just use google before you make yourself look stupid
Joda-money is more widely known and used for that purpose: https://www.joda.org/joda-money/
decimal4j
- please for the love of god just use google before you make yourself look stupid
-
It's the same when those old big TV's are not working properly so you hit on the back and then it suddenly works
oh, definitely. You typically have to go out of your way many times to do it - but they have special libraries like BigDecimal - or custom built projects to emulate fixed point using longs (https://github.com/tools4j/decimal4j) but languages like Cobol were just designed to make it as natural as possible. Float support was secondary in that language.
What are some alternatives?
Membrane Service Proxy - API gateway for REST, OpenAPI, GraphQL and SOAP written in Java.
DFP - Java/.NET implementation of Intel IEEE-754 compliant decimal-float library
Modern Java - A Guide to Java 8 - Modern Java - A Guide to Java 8
sitemapgen4j - SitemapGen4j is a library to generate XML sitemaps in Java.
failsafe - Fault tolerance and resilience patterns for the JVM
Polyglot for Maven - Support alternative markup for Apache Maven POM files
Design Patterns - Design patterns implemented in Java
Jimfs - An in-memory file system for Java 7+
jsr354-ri - JSR 354 - Moneta: Reference Implementation
javaslang-circuitbreaker - Resilience4j is a fault tolerance library designed for Java8 and functional programming
XMLBeam - Java XML library. A really cool one. Obviously.
FF4J - Feature Flags for Java made easy