Value: change to_s to use sprintf()
This commit is contained in:
1 parent
762b7c6413
commit
983861c1dc
2 files changed
+5
-1
No files matched your search
@@ -25,7 +25,7 @@ module Gnucash
|
||||
end
|
||||
|
||||
def to_s
|
||||
(@val / 100.0).round(2).to_s
|
||||
sprintf("%.02f", @val / 100.0)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user