Converting Units Before Summarizing Measurements
Aggregation assumes comparable values. Convert to a declared common unit while retaining source information when useful.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace two time spans
A table may contain 500 milliseconds and 2 seconds. Adding the raw numbers gives 502 in no defined unit. Converting gives 2.5 seconds total. Unit-aware values describe that boundary.
Check a fractional conversion
A converter rounding down to whole seconds would discard the shorter interval. Test it on a non-whole input and keep the output unit clear. See rounding choices.[1][2]