Sha256: ef9e7853ec6b644e481a053594d450c84df47ef9e9bd4321b8a85b8446611953

Contents?: true

Size: 552 Bytes

Versions: 4

Compression:

Stored size: 552 Bytes

Contents

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

UnitMeasurements::ElectricPotential = UnitMeasurements.build do
  primitive "V"

  system :metric do
    si_unit "V", aliases: ["volt", "volts"]

    unit "W/A", value: "1 V", aliases: ["watt per ampere", "watts per ampere"]
    unit "J/C", value: "1 V", aliases: ["joule per coulomb", "joules per coulomb"]

    unit "abV", value: "1e-8 V", aliases: ["abvolt", "abvolts"]
    unit "statV", value: "299.792458 V", aliases: ["statvolt", "statvolts"]
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
unit_measurements-5.19.0 lib/unit_measurements/unit_groups/electric_potential.rb
unit_measurements-5.18.0 lib/unit_measurements/unit_groups/electric_potential.rb
unit_measurements_us_complete-5.17.0 lib/unit_measurements/unit_groups/electric_potential.rb
unit_measurements-5.17.0 lib/unit_measurements/unit_groups/electric_potential.rb