Sha256: 1affb669decd8ea25edde0806ba7b7d917fb686eec1f80eccb699c6f10189043

Contents?: true

Size: 726 Bytes

Versions: 17

Compression:

Stored size: 726 Bytes

Contents

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

UnitMeasurements::Pressure = UnitMeasurements.build do
  primitive "Pa"

  system :metric do
    si_unit "Pa", aliases: ["pascal", "pascals"]

    unit "bar", value: "100 kPa", aliases: ["bars"]
  end

  system :centimetre_gram_second do
    unit "Ba", value: "0.1 Pa", aliases: ["barye", "baryes"]
  end

  system :metre_tonne_second do
    unit "pz", value: "1 kPa", aliases: ["pièze"]
  end

  unit "at", value: "98066.5 Pa", aliases: ["technical atmosphere", "technical atmospheres"]
  unit "atm", value: "101325 Pa", aliases: ["atmosphere", "atmospheres"]
  unit "Torr", value: [Rational(1, 760), "atm"], aliases: ["torr"]
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
unit_measurements-5.4.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-5.3.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-5.2.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-5.1.1 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-5.1.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-5.0.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-4.12.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-4.11.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-4.10.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-4.9.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-4.8.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-4.7.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-4.6.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-4.5.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-4.4.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-4.3.0 lib/unit_measurements/unit_groups/pressure.rb
unit_measurements-4.2.0 lib/unit_measurements/unit_groups/pressure.rb