Class: Arrow::Decimal128

Inherits:
Object
  • Object
show all
Defined in:
lib/arrow/decimal128.rb

Instance Method Summary collapse

Instance Method Details

#to_sString #to_s(scale) ⇒ String

Overloads:

  • #to_sString

    Returns The string representation of the decimal.

    Returns:

    • (String)

      The string representation of the decimal.

  • #to_s(scale) ⇒ String

    Returns The string representation of the decimal including the scale.

    Parameters:

    • scale (Integer)

      The scale of the decimal.

    Returns:

    • (String)

      The string representation of the decimal including the scale.

Since:

  • 0.13.0



34
35
36
37
38
39
40
# File 'lib/arrow/decimal128.rb', line 34

def to_s(scale=nil)
  if scale
    to_string_scale(scale)
  else
    to_s_raw
  end
end

#to_s_rawObject



20
# File 'lib/arrow/decimal128.rb', line 20

alias_method :to_s_raw, :to_s