Sha256: 76b660aa4efc93f5f7a8edfba20d8f536805b38821b9442b4fcf25861143dc4f

Contents?: true

Size: 1.18 KB

Versions: 23

Compression:

Stored size: 1.18 KB

Contents

# -*- encoding: utf-8 -*-
# -*- frozen_string_literal: true -*-
# -*- warn_indent: true -*-

UnitMeasurements::Torque = UnitMeasurements.build do
  primitive "N·m"

  system :metric do
    si_unit "N·m", aliases: ["N*m", "newton meter", "newton metre"]

    unit "kgf·m", value: "9.80665 N·m", aliases: ["kgf*m", "Kilogram-force meter", "kilogramme-force metre"]
  end

  system :centimetre_gram_second do
    unit "dyn·cm", value: "1e-7 N·m", aliases: ["dyn*cm", "dyne centimeter", "dyne centimetre"]
  end

  system :foot_pound_second do
    unit "pdl⋅ft", value: "0.0421401100938048 N·m", aliases: ["pdl*ft", "poundal foot", "foot-poundal"]
    unit "ozf·in", value: "0.00706155 N·m", aliases: ["oz⋅in", "ozf*in", "oz*in", "ounce-force inch", "ounce-inch"]
    unit "ozf·ft", value: "12 ozf·in", aliases: ["oz⋅ft", "ozf*ft", "oz*ft", "ounce-force foot", "ounce-foot"]
  end

  system :imperial do
    unit "lbf⋅in", value: "0.1129848290276167 N·m", aliases: ["lb⋅in", "lbf*in", "lb*in", "pound-force inch", "pound-inch"]
  end

  system :english_engineering do
    unit "lbf⋅ft", value: "12 lbf⋅in", aliases: ["lb⋅ft", "lbf*ft", "lb*ft", "pound-force foot", "pound-foot"]
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
unit_measurements-5.8.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-5.7.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-5.6.1 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-5.6.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-5.5.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-5.4.1 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-5.4.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-5.3.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-5.2.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-5.1.1 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-5.1.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-5.0.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-4.12.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-4.11.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-4.10.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-4.9.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-4.8.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-4.7.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-4.6.0 lib/unit_measurements/unit_groups/torque.rb
unit_measurements-4.5.0 lib/unit_measurements/unit_groups/torque.rb