We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1d550b commit 4f81c1aCopy full SHA for 4f81c1a
src/pg_ext/big_decimal.cr
@@ -5,8 +5,6 @@ module PG
5
# Returns a BigDecimal representation of the numeric. This retains all precision.
6
def to_big_d
7
return BigDecimal.new("0") if nan? || ndigits == 0
8
-
9
- # Since BigDecimal allows initialaztion from String, why should one reinvent the wheel?
10
BigDecimal.new(to_s)
11
end
12
0 commit comments