mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 05:25:24 +02:00
Merge branch 'main' into jose/line-charts
This commit is contained in:
commit
c65b08efe5
11 changed files with 66 additions and 20 deletions
|
@ -58,6 +58,10 @@ class Money::Currency
|
|||
@default_precision = currency_data["default_precision"]
|
||||
end
|
||||
|
||||
def step
|
||||
(1.0/10**default_precision)
|
||||
end
|
||||
|
||||
def <=>(other)
|
||||
return nil unless other.is_a?(Money::Currency)
|
||||
@iso_code <=> other.iso_code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue