Skip to content

Units

PlatformStatus
iOSdone
Androiddone
Units on iPhone
  • Altitude: m or ft. Distance: km, mi or nm. Speed: kph, mph or kt. Vertical speed: m/s, kt or ft/min. Wind: kph, mph or kt. Temperature: °C or °F. Pressure is shown in hPa or inHg.
  • Defaults are metric (m, km, kph, m/s, kph, °C) on a fresh install of either app.
  • Unit abbreviations are not translated. Decided 2026-10-21 (owner): the decimal separator, the grouping (from 1000) and the minus sign follow the device locale on both platforms, with the digits rounded exactly as before; pressure, flight levels, years, coordinates and times never group (Locale number formatting). Both platforms do so since 2026-10-21: iOS 5668173f1, 35cb9f13c; Android 3a4bd2aa. The number is formatted in two stages. Stage 1 rounds the converted value to the kind’s number of decimals exactly as before (C printf on the exact binary value, ties to even: iOS String(format:) through fixed(), Android CFormat.fixed) and writes ASCII digits with a point and no grouping; a value whose rounded digits are all zero has no minus sign (“0.00 m/s”, never “-0.00 m/s”). Stage 2 (LocalizedDigits on both) rewrites that string with the locale’s decimal separator, grouping separator and minus sign without changing a digit, and the unit label follows after a plain space: “2,49 m/s” and “12.972 km” in nl and de, “12 972 km” in fr, “12,972 km” in en. Distances, heights, speeds, vertical speeds, percentages and standalone counts group from 1000 in every locale (also es and pl, whose CLDR data would not group four digits); pressures, glide ratios, bearings and angles never group. Dates, the paywall’s prices and the subscription’s expiry follow the locale already; counts inside sentences (“12 flights”) stay plain digits for now (decision 7 there).
  • The locale is the device’s: iOS Locale.current (the per-app language with the region’s number rules, and the pilot’s Number Format override); Android the configuration locale (LocalConfiguration.current.locales[0]), passed into the pure-Kotlin modules through UnitStrings, which never read Locale.getDefault(). Both ask ICU, so the same locale tag gives the same string on both.
  • The units sync between devices.
  • Android drops the 6-decimal ft/min, hPa and % readouts (B9, done on iOS).
  • iOS stores units as array indices (VultureSkySightWindSpeedUnit … VultureTemperatureUnit, index 0 = the default); Android stores ids such as kph and fts and maps the iOS indices (IosUnitIndex). The order of the iOS arrays is a contract; an unknown index or id falls back to the first unit on both.
  • Formatting is tested on Android against iOS golden data (<fixture>.units.json), which holds the stage-1 strings (locale-neutral digits, a point, no grouping). Both formatters keep a neutral mode (locale = nil / null) that returns the stage-1 string: the iOS UnitGoldenExporter, the Android parity tests (DetailFixtureTablesTest) and every JVM domain test use it; production code never does. The export of 2026-10-21 (iOS 5668173f1) changed four negative-zero entries of hang_glider.units.json, committed in vulture-android with the CFormat change (8c45c4ca). Stage 2 is tested with the same fixed table in en, nl, de, fr, es and pl on both platforms (Golden data).
  • iOS is tested with unit tests in nl and de and a manual simulator pass in nl_BE and de_DE; Android pins its Roborazzi screenshots to en-rUS and adds nl-rNL and de-rDE captures of the barogram, the floating panel and the flight detail summary (decision 13 there).