UCUM_LHC allows multiple prefixes that are invalid
andrey-hssc opened this issue · comments
andrey-hssc commented
The UCUM LHC demo interprets mcg
as
mcg (millicentigram) is a valid unit expression.
This interpretation is based on multiple prefixes m
and c
combined with a single base unit g
. Multiple prefixes are not allowed per UCUM section 4.2:
The unit symbol to be combined with the prefix must not itself contain a prefix. Such a prefix-less unit symbol is called unit atom.
Paul Lynch commented
Confirmed. Thanks for the report. Interestingly, it does not accept mmcg, nor mmJ.
Paul Lynch commented
Fixed in version 4.1.7, but it is not yet on the demo site.
Paul Lynch commented
The demo site at https://ucum.nlm.nih.gov/ucum-lhc/demo.html has been updated with fix (version 4.1.7).