Industrial IoT
Rounding every meter interval can make a day’s energy disappear
A sequence of small energy increments vanishes when rounded individually. Preserve source precision and choose the rounding stage explicitly.
Round a reported total after summing its measured increments when the calculation calls for total energy. If a spreadsheet first rounds each increment to one decimal place, repeated small loads can disappear. Once the fine-resolution data have been discarded, another decimal place on the final display cannot recover them.
Follow a small auxiliary load
Assume 24 measured increments of 0.04 kWh each, one per hour, from a suitably resolved meter. They add to 0.96 kWh, which rounds to 1.0 kWh at one decimal place. Each individual increment rounds to 0.0 kWh at that same precision. Summing those displayed increments gives zero. The underlying load and time period are identical in both calculations.

Worked data
Hours included | Increment per hour (kWh) | Unrounded sum (kWh) |
1 | 0.04 | 0.04 |
6 | 0.04 | 0.24 |
12 | 0.04 | 0.48 |
24 | 0.04 | 0.96 |
Download the figures in this worked example (CSV)
A cumulative register behaves differently
A meter that maintains an internal cumulative register may eventually show a change on its coarser display. Taking the difference between two register readings is different from rounding every interval increment. Record which quantity the interface exports. A register with resolution of only 0.1 kWh cannot support claims about an individual 0.04 kWh interval without additional evidence.
Keep native units, timestamp, measurement resolution and the rounding rule with the data. PostgreSQL’s numeric-type documentation illustrates why exact decimal and floating-point values may behave differently at ties. The figures here avoid ties deliberately. Where contractual billing specifies how each line item must be rounded, follow that agreement and document the resulting reconciliation difference separately from measured energy.
Sources
PostgreSQL · Numeric types and decimal rounding
Cover illustration by Industry Applied, generated with AI. An electricity submeter and a notebook of readings.
Round a reported total after summing its measured increments when the calculation calls for total energy. If a spreadsheet first rounds each increment to one decimal place, repeated small loads can disappear. Once the fine-resolution data have been discarded, another decimal place on the final display cannot recover them.
Follow a small auxiliary load
Assume 24 measured increments of 0.04 kWh each, one per hour, from a suitably resolved meter. They add to 0.96 kWh, which rounds to 1.0 kWh at one decimal place. Each individual increment rounds to 0.0 kWh at that same precision. Summing those displayed increments gives zero. The underlying load and time period are identical in both calculations.

Worked data
Hours included | Increment per hour (kWh) | Unrounded sum (kWh) |
1 | 0.04 | 0.04 |
6 | 0.04 | 0.24 |
12 | 0.04 | 0.48 |
24 | 0.04 | 0.96 |
Download the figures in this worked example (CSV)
A cumulative register behaves differently
A meter that maintains an internal cumulative register may eventually show a change on its coarser display. Taking the difference between two register readings is different from rounding every interval increment. Record which quantity the interface exports. A register with resolution of only 0.1 kWh cannot support claims about an individual 0.04 kWh interval without additional evidence.
Keep native units, timestamp, measurement resolution and the rounding rule with the data. PostgreSQL’s numeric-type documentation illustrates why exact decimal and floating-point values may behave differently at ties. The figures here avoid ties deliberately. Where contractual billing specifies how each line item must be rounded, follow that agreement and document the resulting reconciliation difference separately from measured energy.
Sources
PostgreSQL · Numeric types and decimal rounding
Cover illustration by Industry Applied, generated with AI. An electricity submeter and a notebook of readings.

