MassFlow base unit #1295
-
Hi all, Is there a reason why the base unit of According to the SI standard the base unit of mass is kilogram, and the other mass-related units all use kilogram for their base unit (e.g. Density -> KilogramPerCubicMeter, MassFlux -> KilogramPerSecondPerSquareMeter, ...) If there isn't a specific reason for this, I could prepare a pull request and change it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, the reason is to allow using The name is a bit misleading, it would be better named
Some more details here: Hope this helps! |
Beta Was this translation helpful? Give feedback.
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 madeprivate
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!