# Unit Table v1.7.0

An offline iPhone/Android unit converter by Taiji Yamada, based on the 2021 Converters. Enter a value in any unit field to update the whole category.

日本語: [README-ja.md](README-ja.md)

## v1.7.0: SI prefixes

A separate SI prefixes category converts powers of ten between prefixes attached to the same unit.
- Basic: T, G, M, k, no prefix, m, μ, n and p (nine fields).
- All: 24 official prefixes plus no prefix (25 fields), including R/Q/r/q added in 2022.
- Examples: 1 k = 1000 unprefixed; 1 M = 1000 k; 1 μ = 1000 n. For a real unit: 1 kW = 1000 W.
- Values, Basic/All and language choices are retained.
- Symbols are case-sensitive: M is mega, m is milli and k is kilo.
- This is the prefix factor itself. Squared/cubed units need squared/cubed factors: 1 cm² = 10⁻⁴ m²; 1 cm³ = 10⁻⁶ m³.
- Binary Ki/Mi prefixes are excluded. This does not generate valid unit spellings (such as applying mass prefixes to g).
- Existing physical-unit tables are not expanded with every prefix. Calculations use JavaScript double precision.

[Full prefix table and definitions](UNIT-DEFINITIONS.md) / [BIPM official table](https://www.bipm.org/en/measurement-units/si-prefixes)

## v1.7.0: power, torque, pressure and cooking

### Power
W, kW, MW, PS and hp. PS means metric horsepower (735.49875 W); hp means mechanical horsepower, 550 ft·lbf/s (about 745.6998715822702 W). Electric/boiler horsepower are excluded. Electrical and mechanical power share units, but no motor-efficiency or input/output conversion is calculated. Energy units Wh/kWh are not power units.

### Torque
Basic includes N·m, kgf·m and kgf·cm. All adds lbf·ft and lbf·in. One kgf·m = 9.80665 N·m. Pound-force is force, not mass. Torque is not interconverted with energy in joules.

### Pressure
Air pressure and atmospheric pressure share one table: Pa, MPa, kPa, hPa, bar, mbar, kgf/cm², psi, atm, mmHg and Torr. Basic shows six units; All shows eleven. One hPa = one mbar; one bar = 100 kPa; one atm = 101.325 kPa.
Conventional mmHg uses 133.322387415 Pa; Torr uses 101325/760 Pa. They are separate definitions and may display identically at lower precision.

**Gauge and absolute pressure are not interconverted.** The same reference is preserved: zero kPa remains zero atm. Choosing atm does not add ambient pressure. No local pressure is fetched. This convention is included on screen and in copied results.

### Cooking
Volume adds Japanese teaspoon (5 mL), tablespoon (15 mL) and cooking cup (200 mL), visible in Basic and All. Labels are tsp (JP), tbsp (JP), cup (JP); overseas definitions may differ. A 200 mL cooking cup is distinct from traditional gō (about 180.390684 mL). A separate 180 mL rice-cup unit is not added. Ingredient-specific gram conversion and ingredient selection are not implemented. The Japanese convention is included in clipboard output.

See [UNIT-DEFINITIONS.md](UNIT-DEFINITIONS.md) for adopted formulas and sources.


## New in this release

Power, torque and pressure join length, area, volume, mass, speed, angle, angular speed and temperature. Japanese traditional units are included alongside metric units. There are 197 conversion cells across twelve tables, plus date/time and coordinate tools.

| Category | Basic mode | Additional units in All |
|---|---|---|
| Length | km, m, yd, ft, shaku, sun, in, cm, mm | All earlier units plus ri, chō, jō, ken, bu, rin, mō |
| Area | km², ha, tsubo, m², cm², mm² | chōbu, tan, a, se, square shaku, square sun |
| Volume | m³, shō, L, cup (JP), gō, tbsp (JP), tsp (JP), mL, cm³, mm³ | koku, to, cubic shaku, shaku (volume) |
| Mass | t, kan, kg, g, mg, μg | kin, momme |
| Power | kW, hp, PS, W | MW |
| Torque | kgf·m, N·m, kgf·cm | lbf·ft, lbf·in |
| Pressure | atm, bar, kgf/cm², psi, kPa, hPa | MPa, mbar, mmHg, Torr, Pa |
| SI prefixes | T, G, M, k, no prefix, m, μ, n, p | All 24 prefixes plus no prefix |
| Speed | km, m, cm, mm with h, min, s, plus mph and kt | All original 60 combinations |

Units remain in descending size order; equal factors retain their previous relative order. Basic/All is saved per category and switching preserves values. Speed and angular speed retain the two-axis matrix. In Basic speed, mph/kt appear only in the h row; other cells in those columns are blank. Japanese length units are not expanded into speed combinations.

## Definitions

- Kanejaku: 1 shaku = 10/33 m; 1 sun = 1/33 m; 1 ken = 6 shaku.
- Area: 1 tsubo = 400/121 m². The equal area unit bu is represented as tsubo. Chōbu denotes area, while chō denotes length.
- Volume: 1 shō = 2401/1331000 m³; 1 gō = 0.1 shō. Gō and shaku are used as volume units here, not area units.
- Mass: 1 kan = 3.75 kg; 1 kin = 600 g; 1 momme = 3.75 g.
- Kujirajaku and historical/regional variants are not included. English uses romanized Japanese names with quantity descriptions. Length bu is distinguished from time min.
- ha, a, L and t are non-SI units. Mass and volume are not interconverted because density is required.
- Values use JavaScript double-precision arithmetic and may show rounding error.

Sources: [Japanese historical definitions, Act No. 208 of 1951, Articles 4–5](https://www.shugiin.go.jp/internet/itdb_housei.nsf/html/houritsu/01019510608208.htm) and [BIPM SI Brochure](https://www.bipm.org/en/publications/si-brochure/).

## Install and update

- iPhone: open UnitTable-iOS/UnitTable.xcodeproj in Xcode, select your signing Team, and Run. Requires iOS 17+.
- Android: run setup.command (setup.ps1 on Windows) once, open UnitTable-Android in Android Studio, sync Gradle, and Run. Android 10+, SDK 35, JDK 17.
- Browser: open shared/index.html, or run `python3 -m http.server 8000` and visit http://localhost:8000/shared/.
- Keep the same app ID and signing identity. Update without deleting the previous app to retain settings and values.
- Native IPA/APK builds are not included. Public documentation pages: index.html and index.en.html.

## Usage

Choose a category (the category bar scrolls horizontally). Enter a decimal or scientific-notation number such as 1e3 in any field; fractions, expressions and thousands separators are unsupported. Basic/All selects the visible set; Copy exports only those units as tab-separated text. Definitions explain factors and assumptions. Significant digits affect display, not the stored base value.

Language supports automatic/Japanese/English, and input supports a custom numeric keypad or the device keyboard. Settings and table base values are saved locally; date/time and coordinates reset on restart. Date/time is a timezone-free civil calculation without daylight saving or leap seconds. Coordinates support signed decimal degrees and degrees/minutes/seconds.

No account or network is required. Sound-based ss/Mach use 340 m/s; Ss uses the original upper-bound estimate. See [VALIDATION-en.md](VALIDATION-en.md) for verification and limitations.

Copyright © 2021, 2026 Taiji Yamada. GPL-3.0-only; see COPYING.
