Skip to content

MassFlow base unit #1295

Answered by angularsen
tobiasfrick asked this question in Q&A
Jul 28, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi, the reason is to allow using Prefixes array in json to define MilligramPerSecond, KilogramPerSecond, etc.

The name is a bit misleading, it would be better named ConversionBaseUnit and could very well be made private since it is more an implementation detail than something consumers should rely on for much.

BaseUnits in JSON is used to map units to their SI base unit representation. For example, LengthUnit.Foot has "BaseUnits": { "L": "Foot" }, which can be used to choose a consistent unit representation across quantities.

Some more details here:
https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit#baseunits-optional---the-si-base-units-of-a-unit

Hope this helps!

Replies: 1 comment 1 reply

Comment options

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

Answer selected by tobiasfrick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants