method

screen_data

v1_8_7_72 - Show latest stable - Class: XSD::XSDDecimal
screen_data(d)
private

No documentation available.

# File lib/xsd/datatypes.rb, line 242
  def screen_data(d)
    if d.is_a?(String)
      # Integer("00012") => 10 in Ruby.
      d.sub!(/^([+\-]?)0*(?=\d)/, "\\1")
    end
    screen_data_str(d)
  end