Skip to content

Proposal for new chemical units #121

@saki7

Description

@saki7

IU - International Units

This unit is specified for common chemicals where you can't determine effectiveness by its absolute value. In those cases IU is used, which varies among each chemicals.

For example, micrograms are commonly used in most of vitamin drugs, but sometimes there's exceptions (such as milligrams). IU is the standardized relative unit.

kind: :unitless (I'm not sure)
aliases: [IU, international-units]

Eq - Molar Equivalent

kind: :substance (I'm not sure)
aliases: [Eq, molar-equivalent]

We have to make sure that prefixed unit is available for this unit, e.g. mEq.


Problem: You can't define a new unit which contains the % string.

I think this is related to the core parse routine, so I need your help on this.

v/v% - volume per volume

Specifies how much volume is contained in the substance.

kind: :unitless I guess. But if you are considering to create a new kind, :percentage, it might be more appropriate to use that one instead.
aliases: v/v%
definition: RubyUnits::Unit.new("1 mL") / RubyUnits::Unit.new("100 mL")

w/v% - weight per volume

Specifies how much weight is contained in the substance.

kind: same as v/v%.
definition: RubyUnits::Unit.new("1 g") / RubyUnits::Unit.new("100 mL")

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions