lib/ig_markets/format.rb
# Returns a formatted string for the specified level. At most four decimal places are used to format levels.
#
# @param [Float] value The level to format.
#
# @return [String] The formatted level, e.g. `"-130.4055"`
Returns a formatted string for the specified level. At most four decimal places are used to format levels.
Returns a formatted string for the specified level . At most four decimal places are used to format levels .
def level(value)
      return '' unless value
      Float(format('%.4f', value.to_f)).to_s
    end
def level ( value ) return '' unless value Float ( format ( '%.4f' , value . to_f ) ) . to_s end
Returns a formatted string for the specified level.
Returns a formatted string for the specified level .
The formatted level, e.g.
The formatted level e . g .
String
value
value The level to format.
value The level to format .