Sha256: 6f0bf6d15a464833e7637a324d8cac035ac5f0f581c0dd23ba46fcec4e645b6f

Contents?: true

Size: 234 Bytes

Versions: 18

Compression:

Stored size: 234 Bytes

Contents

class Decimal
  include Comparable

  ZERO = Decimal.new(0)
end

class Fixnum
  def to_d
    Decimal.new(self)
  end
end

class Float
  def to_d
    Decimal.new(self)
  end
end

class String
  def to_d
    Decimal.new(self)
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
script_core-0.3.2 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.3.0 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.2.7 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.2.6 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.2.5 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.2.4 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.2.3 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.2.2 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.2.1 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.2.0 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.1.1 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.1.0 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.0.6 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.0.5 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.0.4 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.0.3 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.0.2 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb
script_core-0.0.1 ext/enterprise_script_service/mruby-mpdecimal/mrblib/mpdecimal.rb