Joda-Money
Money
Our great sponsors
Joda-Money | Money | |
---|---|---|
3 | 4 | |
637 | 2,683 | |
0.3% | 0.7% | |
6.3 | 7.2 | |
6 months ago | 3 days ago | |
Java | Ruby | |
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/
Money
-
Keep Your Ruby Code Maintainable with Money-Rails
Many other options are available to customize this for your Ruby on Rails app. Check out the full details in the money and money-rails guides.
-
Why I Stopped Using Sorbet in All My Ruby Projects
For now I just try to use better objects, avoiding primitive datatypes in internal code (using the null object pattern or an option/maybe class can go a long way), and using gems that do the same, such as dry-rb and money.
-
[Production code] The previous dev thought it was ok to use floating point variables for money
Java has to have a modern money library by now? Ruby has one => https://github.com/RubyMoney/money
-
Currency Calculations in Ruby
Make sure to refer to the docs for more of the provided currency attributes, such as iso_code (which returns the international three-digit code of that currency) and decimal_mark (the char between the value and the fraction of the money data), among others.
What are some alternatives?
Membrane Service Proxy - API gateway for REST, OpenAPI, GraphQL and SOAP written in Java.
Monetize - A library for converting various objects into `Money` objects.
Modern Java - A Guide to Java 8 - Modern Java - A Guide to Java 8
Plutus - A Ruby on Rails Engine which provides a double entry accounting system for your application
sitemapgen4j - SitemapGen4j is a library to generate XML sitemaps in Java.
Wallet - A Ruby program to track your finances.
failsafe - Fault tolerance and resilience patterns for the JVM
Income Tax Estimation - Ruby library to calculate the income tax for any country
Polyglot for Maven - Support alternative markup for Apache Maven POM files
DoubleEntry - A double-entry accounting system for Ruby applications.
Design Patterns - Design patterns implemented in Java
money-rails - Integration of RubyMoney - Money with Rails