Sha256: 76b8ff080fc73f6fa8e1889fe68f19b8866e51b1e9e838a40c58bee68c0afef7

Contents?: true

Size: 620 Bytes

Versions: 22

Compression:

Stored size: 620 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: ["W·A⁻¹", "watt per ampere", "watts per ampere"]
    unit "J/C", value: "1 V", aliases: ["J·C⁻¹", "joule per coulomb", "joules per coulomb"]
  end

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
unit_measurements-4.1.0 lib/unit_measurements/unit_groups/electric_potential.rb
unit_measurements-4.0.0 lib/unit_measurements/unit_groups/electric_potential.rb