Skip to content

Field notes

Display Units vs Stored Units: What a Tracking App Converts

The number on your screen is not always the number a device wrote down. A stored value keeps its original unit, and the display unit is chosen later, when the value is read.

referencedataprecision
The Optimized Team· ProductUpdated Nov 16, 2026

In a tracking app, a stored value keeps the unit it was created in, and the unit you see on screen is chosen separately when the value is read. Apple's HealthKit works this way: a value is saved with its unit, and any compatible unit can be requested later. So the number in front of you can differ from the number a device wrote down, while both describe the same measurement.

This matters if you keep a personal log you plan to audit months from now. A unit setting can change what you see without changing what is kept. Below: what a stored quantity is, what gets converted, where the display unit comes from, and what to write down in your own records.

What a stored quantity is#

Apple's documentation says HealthKit uses quantity objects to store numerical data, and that when a quantity is created it receives both a value and a unit. The same page notes that quantities are immutable: the value is set at creation and cannot change afterward.

A value plus the unit it was created in#

Think of each stored entry as two things that travel together: a number and a label for what the number counts. A weight of 150 means nothing until the label says pounds. Apple's HKUnit reference adds that quantities hold the value as a double, which is a floating point number, and pair it with its unit.

Unit families#

The same reference says the unit class supports standard SI units such as meters, seconds and grams, SI units with prefixes such as centimeters and kilograms, and equivalent non-SI units such as feet, minutes and pounds. Units can also be combined into complex ones, such as meters per second. That range is why one stored entry can be shown in several ways.

If you want to see what a saved entry looks like outside an app, what an Apple Health export file actually contains walks through the fields it holds.

Converting on request#

Same data, any compatible unit#

According to Apple, you can request the value from a quantity object in any compatible units. Apple's own example: if you create a length quantity in feet, you can then request the length in meters, and the quantity converts its value to the requested unit automatically.

Two details are worth knowing. A quantity can report whether it is compatible with a given unit, so you can check before asking for a length in kilograms. And when two quantities are compared, HealthKit converts them to the same unit first. In both cases the conversion happens at read time, and the stored original is untouched.

What conversion does not do#

Conversion is arithmetic on a value that already exists. It can't add precision that was never recorded. A weight entered to the nearest pound does not become a more exact number in kilograms, it becomes a longer one. Many decimal places after a conversion reflect the math, not the original measurement.

Apple also notes that a formatter can localize length, mass and energy, but for other quantities the app has to perform the conversions and localize the data itself. That means two apps can show the same stored entry slightly differently, depending on how each one formats it.

Where the display unit comes from#

Locale first, then the user's choice#

Apple's documentation for preferred units says that by default they are based on the device's current locale. In the US, the preferred unit for body mass is pounds, while other regions may use kilograms or stones. Users can change their preferred units in the Health app at any time.

The same page tells apps to present HealthKit data in the current preferred units, with blood glucose noted as an exception. It also says apps should watch for a notification that fires when the user changes the preference, and update the interface when it does. In other words, a unit change is a display event. The stored entries stay as they were.

What denied permission does to the units#

The preferred-units lookup depends on what the user has allowed. Apple lists three cases:

  • If an app never requested access to a type, the lookup returns an authorization not determined error.
  • If the user denied access, it returns the default units for the device's current locale.
  • If the user granted read or share access, it returns the current preferred units, which may or may not be the defaults.

The middle case is easy to miss. An app that was denied access does not show an error to the user. It quietly falls back to locale defaults, so the units on screen can differ from the ones the person chose in the Health app. This is one more way a record can look fine while hiding a gap, similar to what happens when a permission is switched off and the gap stays silent.

Why a displayed number can differ from the one you typed#

Put the pieces together and several ordinary things can make a screen disagree with your memory of an entry:

  • The entry was saved in one unit and your current preference shows another.
  • You changed your preferred unit after the entry was made.
  • An app rounds for display, and a different app rounds differently.
  • A fallback to locale defaults replaced a unit you had chosen.

None of these means the stored value is wrong. The display is a view of the value, and views change. The risk comes when you copy a displayed number into a spreadsheet or a note without the unit and later compare it with a number copied under a different setting.

The same care applies to lab records, where two labs may report the same marker in different units. Keeping the reference range on every row is one habit that makes such comparisons readable, and writing the unit on every row is its close companion.

Individual apps differ, and this article describes Apple's documented behavior, not every tracker on the market. If you rely on a particular app, check how it stores and shows units before treating its numbers as comparable.

What to record in your own log#

A short list that keeps your records auditable no matter which unit the screen shows:

  • Write the unit in its own column or right beside every value, never only in a column heading you might later edit.
  • Keep the unit you originally entered, even if you later view the data in another unit.
  • When you note a unit setting change, add the date to your log so a jump in the numbers has an explanation.
  • Before comparing two numbers, confirm they share a unit. Convert one of them and write down that you did.
  • Avoid repeated conversions back and forth. Convert once, from the original, and say so.

OptimizedTracker is built around this idea: the entry, its unit and its date stay together, so you can read the record later without guessing what a number meant. Whatever tool you use, the habit is the same. Keep the stored value and its unit together as one fact, and regard the unit on screen as a choice someone, or something, made at the moment you looked.

Share

X / Twitter