Description
Multiply recordedMass by positive unitFactor, then subtract referenceMass to return the signed gap.
A conversion factor maps a quantity onto a declared reporting basis. For ratios and rates, numerator and denominator units must be made coherent before comparison.
Multiply recordedMass by positive unitFactor, then subtract referenceMass to return the signed gap.
When to use this tool
Use Specimen Mass Unit Gap when you need a transparent conversion with factors you already know.
How to use the tool and how it works
- Enter recordedMass, unitFactor, referenceMass. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read convertedMass, gap. Use the output convention below.
Multiply recordedMass by positive unitFactor, then subtract referenceMass to return the signed gap.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| recordedMass | Recorded Mass | Required. Finite number; minimum 0. |
| unitFactor | Unit Factor | Required. Finite number; strictly above 0. |
| referenceMass | Reference Mass | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| convertedMass | Converted Mass | Required. Finite number. |
| gap | Signed difference under the stated subtraction order. | Required. Finite number. |
{
"input": {
"recordedMass": 120,
"unitFactor": 0.001,
"referenceMass": 0.1
},
"output": {
"convertedMass": 0.12,
"gap": 0.01999999999999999
}
} Limitations and assumptions
- Mass values must be nonnegative; the unit factor and any acceptable tolerance are supplied externally.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Verify the laboratory's unit definitions and analyte-specific factors, then compare converted quantities on the same basis.
References
Similar or alternative tools
- Renal Analyte Unit Gap
Multiply reportedValue by suppliedUnitFactor and dilutionFactor, then subtract referenceValue for residual.
- Renal Assay Activity Molar Unit Flag
When molarBasisKnown is true, divide activity by that factor; otherwise return molarAmount zero and molarDefined false.