forked from fixin.me/fixin.me
Add Units
This commit is contained in:
12
lib/core_ext/big_decimal/formatting.rb
Normal file
12
lib/core_ext/big_decimal/formatting.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
#require "bigdecimal"
|
||||
#require "bigdecimal/util"
|
||||
|
||||
module FixinMe
|
||||
module BigDecimalWithGrouping
|
||||
def to_s(format = "3F")
|
||||
super(format)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
BigDecimal.prepend(FixinMe::BigDecimalWithGrouping)
|
||||
Reference in New Issue
Block a user