Sha256: 99a63dbd642346344950adf68deb3d51f6c8ca58fa84bc8954b660e43445915a

Contents?: true

Size: 514 Bytes

Versions: 2

Compression:

Stored size: 514 Bytes

Contents

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

UnitMeasurements::Voltage = UnitMeasurements.build do
  si_unit :V, aliases: [:volt, :volts]

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

  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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
unit_measurements-3.2.0 lib/unit_measurements/unit_groups/voltage.rb
unit_measurements-3.1.0 lib/unit_measurements/unit_groups/voltage.rb