Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal for new chemical units #121

Open
saki7 opened this issue Feb 22, 2015 · 2 comments
Open

Proposal for new chemical units #121

saki7 opened this issue Feb 22, 2015 · 2 comments

Comments

@saki7
Copy link
Contributor

saki7 commented Feb 22, 2015

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")

@saki7
Copy link
Contributor Author

saki7 commented Feb 23, 2015

Also, it would be very nice if you could add μ as an alias of micro prefix.

@saki7
Copy link
Contributor Author

saki7 commented Feb 23, 2015

Related to #108.

@olbrich olbrich added this to the Next Release milestone Feb 24, 2015
@olbrich olbrich removed this from the Next Release milestone Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants