Skip to content

Why litre dimensionality is length and not volume? #1975

Answered by dopplershift
lipemorais asked this question in Q&A
Discussion options

You must be logged in to vote
import pint

ureg = pint.UnitRegistry()
x = 3 * ureg('mL')
x.dimensionality

gives <UnitsContainer({'[length]': 3})>, which says the dimensionality is length**3, which implies volume?

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@lipemorais
Comment options

Answer selected by lipemorais
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants