Unit Domain Mass: Difference between revisions

From imde.io

 
(11 intermediate revisions by one other user not shown)
Line 1: Line 1:
===Unit Domain: Mass===
===Unit Domain: Mass===


The amount or quantity of heaviness or mass; amount a thing weighs. The default unit for weight is grams.
The amount or quantity of heaviness or mass; amount a thing weighs. The '''base unit''' for mass is grams.


===Alternative units of measure===
===Alternative units of measure===
Line 8: Line 8:
|+ Units of Measure
|+ Units of Measure
|-
|-
! Mass Unit Full !! Symbol English !! UoM Code !! Shift Before !! Numerator !! Denominator !! Shift after || DefaultUoM !!  
! Mass Unit Full !! Symbol English !! UoM Code !! Shift Before !! Numerator !! Denominator !! Shift after || Base UoM !!  
|-
|-
| Microgram|| μg || Ug || - || 1 || 1.000.000 || - || gr
| Microgram|| μg || Ug || - || 1 || 1.000.000 || - || g
|-
|-
| Milligram || mg || Mg ||  - || 1 || 1.000 || - || gr
| Milligram || mg || Mg ||  - || 1 || 1.000 || - || g
|-
|-
| Gram || gr || Gr || - || 1 || 1 || - || gr
| '''Gram''' || g || Gr || - || 1 || 1 || - || g
|-
|-
| Kilogram || kg || Kg || - || 1.000 || 1 || - || gr
| Kilogram || kg || Kg || - || 1.000 || 1 || - || g
|-
|-
| Tonne || t || To || - || 1.000.000 || 1 || - || gr
| Tonne || t || To || - || 1.000.000 || 1 || - || g
|-
|-
| Ounce || oz || Oz || - || 2.834.952|| 100.000 || - || gr
| Ounce || oz || Oz || - || 2.834.952|| 100.000 || - || g
|-
|-
| Pounds || lb || Lb || - || 10.000.000|| 22.046 || - || gr
| Pounds || lb || Lb || - || 10.000.000|| 22.046 || - || g
|}
|}


The formula to convert one Mass UoM to another is:
The formula to convert one Mass UoM to another is:


TargetValue = ((SourceValue + ShiftBefore) * (SourceNumerator / SourceDenominator) - ShiftAfter) * ((-ShiftAfter * TargetDenominator/TargetNumerator)-Shiftbefore)
'''Convert a value to the value in the Base Unit of measure:'''
 
[[File:Formula Unit of Measure to Base.png|800px]]
 
'''From Value in Base Unit to another unit:'''
 
[[File:Formula-UoM-base-to-target.png|800px]]


Example: '''Ounce to Milligram'''
Example: '''Ounce to Milligram'''

Latest revision as of 16:45, 9 November 2022

Unit Domain: Mass

The amount or quantity of heaviness or mass; amount a thing weighs. The base unit for mass is grams.

Alternative units of measure

Units of Measure
Mass Unit Full Symbol English UoM Code Shift Before Numerator Denominator Shift after Base UoM
Microgram μg Ug - 1 1.000.000 - g
Milligram mg Mg - 1 1.000 - g
Gram g Gr - 1 1 - g
Kilogram kg Kg - 1.000 1 - g
Tonne t To - 1.000.000 1 - g
Ounce oz Oz - 2.834.952 100.000 - g
Pounds lb Lb - 10.000.000 22.046 - g

The formula to convert one Mass UoM to another is:

Convert a value to the value in the Base Unit of measure:

Formula Unit of Measure to Base.png

From Value in Base Unit to another unit:

Formula-UoM-base-to-target.png

Example: Ounce to Milligram

1 Ounce * (2834952/100000) * (1000 / 1) = 28349,52 Milligram