Expand description
Strongly typed physical quantities and conversions.
qtty is the user-facing crate in this workspace. It re-exports the full API from qtty-core plus a curated set
of predefined units (time, angles, lengths, …).
The core idea is: a value is always a Quantity<U>, where U is a zero-sized type describing the unit. This keeps
units at compile time with no runtime overhead beyond an f64.
§What this crate solves
- Prevents mixing incompatible dimensions (you can’t add metres to seconds).
- Makes unit conversion explicit and type-checked (
to::<TargetUnit>()). - Provides a small set of astronomy-friendly units (AU, light-year, solar mass/luminosity, …).
§What this crate does not try to solve
- Arbitrary symbolic unit algebra (e.g.
m^2 * s^-1) or automatic simplification of arbitrary expressions. - Exact arithmetic: quantities are backed by
f64. - A full SI-prefix system; only the units defined in this crate are available out of the box.
§Quick start
Convert degrees to radians:
use qtty::{Degrees, Radian};
let a = Degrees::new(180.0);
let r = a.to::<Radian>();
assert!((r.value() - core::f64::consts::PI).abs() < 1e-12);Compose and use derived units (velocity = length / time):
use qtty::{Kilometer, Kilometers, Second, Seconds};
use qtty::velocity::Velocity;
let d = Kilometers::new(1_000.0);
let t = Seconds::new(100.0);
let v: Velocity<Kilometer, Second> = d / t;
assert!((v.value() - 10.0).abs() < 1e-12);§Incorrect usage (type error)
use qtty::{Kilometers, Seconds};
let d = Kilometers::new(1.0);
let t = Seconds::new(1.0);
let _ = d + t; // cannot add different unit types§Modules
Units are grouped by dimension under modules (also re-exported at the crate root for convenience):
qtty::angular(degrees, radians, arcseconds, wrapping/trigonometry helpers)qtty::time(seconds, days, years, …)qtty::length(metres, kilometres, AU, light-year, …)qtty::mass(grams, kilograms, solar mass)qtty::power(watts, solar luminosity)qtty::velocity(Length / Timealiases)qtty::frequency(Angular / Timealiases)
§Feature flags
std(default): enablesstdsupport inqtty-core.serde: enablesserdesupport forQuantity<U>; serialization is the rawf64value only.
Disable default features for no_std:
[dependencies]
qtty = { version = "0.1.0", default-features = false }§Panics and errors
This crate does not define an error type and does not return Result from its core operations. Conversions and
arithmetic are pure f64 computations; they do not panic on their own, but they follow IEEE-754 behavior (NaN and
infinities propagate according to the underlying operation).
§SemVer and stability
This workspace is currently 0.x. Expect breaking changes between minor versions until 1.0.
Modules§
- angular
- Angular quantities and utilities.
- frequency
- Angular frequency unit aliases (
Angular / Time). - length
- Length units.
- mass
- Mass units.
- nominal
- Nominal astronomical and planetary radii and related distances.
- power
- Power units.
- time
- Time units.
- unitless
- Dimensionless helpers.
- units
- Predefined unit modules (grouped by dimension). Predefined unit modules grouped by dimension.
- velocity
- Velocity unit aliases (
Length / Time).
Macros§
- impl_
unit_ conversions - Generates
Fromtrait implementations for all pairs of units within a dimension.
Structs§
- Arcminute
- Arcminute (
1/60degree). - Arcsecond
- Arcsecond (
1/3600degree). - Astronomical
Unit - Astronomical unit (au). Exact (IAU 2012): metres per au.
- Atomic
Mass Unit - Unified atomic mass unit (u), a.k.a. dalton (Da).
- Attogram
- SI mass unit
Attogramwith gram-based prefix (symbolag). By definition,1 ag = 1e-18 g. - Attometer
- Attometre (
1e-18 m). - Attosecond
- Attoseconds (
1 as = 10^-18 s). - Attowatt
- SI-prefixed watt unit (1e-18 W).
- Bohr
Radius - Bohr radius (
a0). CODATA 2018 value in metres. - Carat
- Carat:
1 ct = 0.2 g(exact). - Centigram
- SI mass unit
Centigramwith gram-based prefix (symbolcg). By definition,1 cg = 1e-2 g. - Centimeter
- Centimetre (
1e-2 m). - Centisecond
- Centiseconds (
1 cs = 10^-2 s). - Century
- Century (
100mean tropical years). - Chain
- Chain (
66 ftexactly). - Classical
Electron Radius - Classical electron radius (
re). CODATA 2018 value in metres. - Day
- Mean solar day (
86_400 sby convention; leap seconds ignored). - Decade
- Decade (
10mean tropical years). - Decagram
- SI mass unit
Decagramwith gram-based prefix (symboldag). By definition,1 dag = 1e1 g. - Decameter
- Decametre (
1e1 m). - Decasecond
- Decaseconds (
1 das = 10 s). - Decawatt
- SI-prefixed watt unit (1e1 W).
- Decigram
- SI mass unit
Decigramwith gram-based prefix (symboldg). By definition,1 dg = 1e-1 g. - Decimeter
- Decimetre (
1e-1 m). - Decisecond
- Deciseconds (
1 ds = 10^-1 s). - Deciwatt
- SI-prefixed watt unit (1e-1 W).
- Degree
- Degree.
- DivDim
- Dimension formed by dividing one
Dimensionby another. - Earth
Equatorial Circumference - Earth equatorial circumference.
- Earth
Meridional Circumference - Earth meridional circumference (approximate mean value).
- Electron
Reduced Compton Wavelength - Reduced Compton wavelength of the electron (
lambda_bar_e). CODATA 2018 value in metres. - ErgPer
Second - Erg per second (
erg/s). - Exagram
- SI mass unit
Exagramwith gram-based prefix (symbolEg). By definition,1 Eg = 1e18 g. - Exameter
- Exametre (
1e18 m). - Exawatt
- SI-prefixed watt unit (1e18 W).
- Fathom
- Fathom (
6 ftexactly). - Femtogram
- SI mass unit
Femtogramwith gram-based prefix (symbolfg). By definition,1 fg = 1e-15 g. - Femtometer
- Femtometre (
1e-15 m). - Femtosecond
- Femtoseconds (
1 fs = 10^-15 s). - Femtowatt
- SI-prefixed watt unit (1e-15 W).
- Foot
- Foot (
0.3048 mexactly). - Fortnight
- Fortnight (
14 d = 1_209_600 s). - Gigagram
- SI mass unit
Gigagramwith gram-based prefix (symbolGg). By definition,1 Gg = 1e9 g. - Gigameter
- Gigametre (
1e9 m). - Gigaparsec
- Gigaparsec (Gpc):
1e9 pc. - Gigasecond
- Gigaseconds (
1 Gs = 10^9 s). - Gigawatt
- SI-prefixed watt unit (1e9 W).
- Gradian
- Gradian (also called gon;
1/400of a full turn =0.9degree). - Grain
- Grain:
1 gr = 64.79891 mg(exact) ==0.064_798_91 g. - Gram
- Gram.
- Hectogram
- SI mass unit
Hectogramwith gram-based prefix (symbolhg). By definition,1 hg = 1e2 g. - Hectometer
- Hectometre (
1e2 m). - Hectosecond
- Hectoseconds (
1 hs = 100 s). - Hectowatt
- SI-prefixed watt unit (1e2 W).
- Horsepower
Electric - Electric horsepower (
hp_e), defined as exactly746 W. - Horsepower
Metric - Metric horsepower (
PS), defined as exactly735.49875 W. - Hour
- Hours (
3_600 s). - Hour
Angle - Hour angle hour (
15degrees). - Inch
- Inch (
0.0254 mexactly). - Julian
Century - Julian century (
36_525 d), expressed in seconds. - Julian
Year - Julian year (
365.25 d), expressed in seconds. - Kilogram
- SI mass unit
Kilogramwith gram-based prefix (symbolkg). By definition,1 kg = 1e3 g. - Kilometer
- Kilometre (
1000 m). - Kiloparsec
- Kiloparsec (kpc):
1e3 pc. - Kilosecond
- Kiloseconds (
1 ks = 1_000 s). - Kilowatt
- SI-prefixed watt unit (1e3 W).
- Light
Year - Light-year (ly): distance light travels in one Julian year (
365.25 d) atc = 299_792_458 m/s. - Link
- Link (
1/100 of a chain, i.e.0.66 ft). - LongTon
- Long ton (Imperial):
2240 lb(exact given lb). - Megagram
- SI mass unit
Megagramwith gram-based prefix (symbolMg). By definition,1 Mg = 1e6 g. - Megameter
- Megametre (
1e6 m). - Megaparsec
- Megaparsec (Mpc):
1e6 pc. - Megasecond
- Megaseconds (
1 Ms = 10^6 s). - Megawatt
- SI-prefixed watt unit (1e6 W).
- Meter
- Metre (SI base unit).
- Micro
Arcsecond - Microarcsecond (
1/3_600_000_000degree). - Microgram
- SI mass unit
Microgramwith gram-based prefix (symbolµg). By definition,1 µg = 1e-6 g. - Micrometer
- Micrometre (
1e-6 m). - Microsecond
- Microseconds (
1 µs = 10^-6 s). - Microwatt
- SI-prefixed watt unit (1e-6 W).
- Mile
- (Statute) mile (
1609.344 mexactly). - Millennium
- Millennium (
1000mean tropical years). - Milli
Arcsecond - Milliarcsecond (
1/3_600_000degree). - Milligram
- SI mass unit
Milligramwith gram-based prefix (symbolmg). By definition,1 mg = 1e-3 g. - Millimeter
- Millimetre (
1e-3 m). - Milliradian
- Milliradian (
1/1000radian). - Millisecond
- Milliseconds (
1 ms = 10^-3 s). - Milliwatt
- SI-prefixed watt unit (1e-3 W).
- Minute
- Minutes (
60 s). - Nanogram
- SI mass unit
Nanogramwith gram-based prefix (symbolng). By definition,1 ng = 1e-9 g. - Nanometer
- Nanometre (
1e-9 m). - Nanosecond
- Nanoseconds (
1 ns = 10^-9 s). - Nanowatt
- SI-prefixed watt unit (1e-9 W).
- Nautical
Mile - Nautical mile (
1852 mexactly). - Ounce
- Avoirdupois ounce:
1 oz = 1/16 lb(exact). - Parsec
- Parsec (pc):
pc = au * 648000 / π(exact given au). - Per
- Unit representing the division of two other units.
- Petagram
- SI mass unit
Petagramwith gram-based prefix (symbolPg). By definition,1 Pg = 1e15 g. - Petameter
- Petametre (
1e15 m). - Petawatt
- SI-prefixed watt unit (1e15 W).
- Picogram
- SI mass unit
Picogramwith gram-based prefix (symbolpg). By definition,1 pg = 1e-12 g. - Picometer
- Picometre (
1e-12 m). - Picosecond
- Picoseconds (
1 ps = 10^-12 s). - Picowatt
- SI-prefixed watt unit (1e-12 W).
- Planck
Length - Planck length (
lp). CODATA 2018 value in metres. - Pound
- Avoirdupois pound:
1 lb = 0.45359237 kg(exact) ==453.59237 g. - Quantity
- A quantity with a specific unit.
- Radian
- Radian.
- Rod
- Rod / pole / perch (
16.5 ftexactly). - Second
- Seconds (SI base unit).
- Short
Ton - Short ton (US customary):
2000 lb(exact given lb). - Sidereal
Day - Mean sidereal day (Earth), expressed in SI seconds.
- Sidereal
Year - Mean sidereal year (Earth), expressed in seconds.
- Solar
Luminosity - Solar luminosity (IAU nominal constant; watts per L☉).
- Solar
Mass - Nominal solar mass (IAU 2015 Resolution B3; grams per M☉).
- Stone
- Avoirdupois stone:
1 st = 14 lb(exact). - Synodic
Month - Mean synodic month (lunar phase cycle), expressed in seconds.
- Teragram
- SI mass unit
Teragramwith gram-based prefix (symbolTg). By definition,1 Tg = 1e12 g. - Terameter
- Terametre (
1e12 m). - Terasecond
- Teraseconds (
1 Ts = 10^12 s). - Terawatt
- SI-prefixed watt unit (1e12 W).
- Tonne
- Tonne (metric ton):
1 t = 1_000_000 g(exact). - Turn
- Turn (full revolution;
360degrees). - Unitless
- Zero-sized marker type for dimensionless quantities.
- Watt
- Watt (SI coherent derived unit).
- Week
- Week (
7 d = 604_800 s). - Yard
- Yard (
0.9144 mexactly). - Year
- Mean tropical year, as a conventional mean length.
- Yoctogram
- SI mass unit
Yoctogramwith gram-based prefix (symbolyg). By definition,1 yg = 1e-24 g. - Yoctometer
- Yoctometre (
1e-24 m). - Yoctowatt
- SI-prefixed watt unit (1e-24 W).
- Yottagram
- SI mass unit
Yottagramwith gram-based prefix (symbolYg). By definition,1 Yg = 1e24 g. - Yottameter
- Yottametre (
1e24 m). - Yottawatt
- SI-prefixed watt unit (1e24 W).
- Zeptogram
- SI mass unit
Zeptogramwith gram-based prefix (symbolzg). By definition,1 zg = 1e-21 g. - Zeptometer
- Zeptometre (
1e-21 m). - Zeptowatt
- SI-prefixed watt unit (1e-21 W).
- Zettagram
- SI mass unit
Zettagramwith gram-based prefix (symbolZg). By definition,1 Zg = 1e21 g. - Zettameter
- Zettametre (
1e21 m). - Zettawatt
- SI-prefixed watt unit (1e21 W).
Enums§
- Angular
- Dimension tag for angular measures (e.g., degrees, radians, arcseconds).
- Dimensionless
- Dimension for dimensionless quantities.
- Length
- Dimension tag for length.
- Mass
- Dimension tag for mass.
- Power
- Fundamental dimension – power.
- Time
- Dimension tag for time.
Constants§
- A0
- One Bohr radius.
- AG
- Constant equal to one Attogram (1 ag).
- AM
- One attometre.
- ARCM
- One arcminute.
- ARCS
- One arcsecond.
- ATTOSEC
- A constant representing one attosecond.
- AU
- One astronomical unit.
- AW
- One Attowatt.
- CENTISEC
- A constant representing one centisecond.
- CENTURY
- A constant representing one century.
- CG
- Constant equal to one Centigram (1 cg).
- CHAIN
- One chain.
- CM
- One centimetre.
- CT
- One carat.
- C_
EQUATORIAL - One Earth equatorial circumference.
- C_
MERIDIONAL - One Earth meridional circumference.
- DAG
- Constant equal to one Decagram (1 dag).
- DAM
- One decametre.
- DAW
- One Decawatt.
- DAY
- A constant representing one day.
- DECADE
- A constant representing one decade.
- DECASEC
- A constant representing one decasecond.
- DECISEC
- A constant representing one decisecond.
- DEG
- One degree.
- DG
- Constant equal to one Decigram (1 dg).
- DM
- One decimetre.
- DW
- One Deciwatt.
- EG
- Constant equal to one Exagram (1 Eg).
- EM
- One exametre.
- ERG_
PER_ S - One erg/s.
- EW_1
- One Exawatt.
- FEMTOSEC
- A constant representing one femtosecond.
- FG
- Constant equal to one Femtogram (1 fg).
- FM
- One femtometre.
- FORTNIGHT
- A constant representing one fortnight.
- FT
- One foot.
- FTM
- One fathom.
- FW
- One Femtowatt.
- G
- One gram.
- GG
- Constant equal to one Gigagram (1 Gg).
- GIGASEC
- A constant representing one gigasecond.
- GM
- One gigametre.
- GON
- One gradian.
- GPC
- One gigaparsec.
- GR
- One grain.
- GW_1
- One Gigawatt.
- HECTOSEC
- A constant representing one hectosecond.
- HG
- Constant equal to one Hectogram (1 hg).
- HM
- One hectometre.
- HOUR
- A constant representing one hour.
- HOUR_
ANGLE - One hour angle hour (==15°).
- HP_E
- One electric horsepower.
- HW
- One Hectowatt.
- INCH
- One inch.
- JULIAN_
CENTURY - A constant representing one Julian century.
- JULIAN_
YEAR - A constant representing one Julian year.
- KG
- Constant equal to one Kilogram (1 kg).
- KILOSEC
- A constant representing one kilosecond.
- KM
- One kilometre.
- KPC
- One kiloparsec.
- KW
- One Kilowatt.
- LAMBDA_
BAR_ E - One reduced Compton wavelength of the electron.
- LB
- One pound.
- LINK
- One link.
- LP
- One Planck length.
- LY
- One light-year.
- L_SUN
- One solar luminosity.
- M
- One metre.
- MAS
- One milliarcsecond.
- MEGAGRAM
- Constant equal to one Megagram (1 Mg).
- MEGAMETER
- One megametre.
- MEGASEC
- A constant representing one megasecond.
- MEGAWATT
- One Megawatt.
- MG
- Constant equal to one Milligram (1 mg).
- MI
- One mile.
- MICROSEC
- A constant representing one microsecond.
- MILLENNIUM
- A constant representing one millennium.
- MILLISEC
- A constant representing one millisecond.
- MIN
- A constant representing one minute.
- MM
- One millimetre.
- MPC
- One megaparsec.
- MRAD
- One milliradian.
- MSUN
- One nominal solar mass.
- MW_1
- One Milliwatt.
- NANOSEC
- A constant representing one nanosecond.
- NG
- Constant equal to one Nanogram (1 ng).
- NM
- One nanometre.
- NMI
- One nautical mile.
- NW
- One Nanowatt.
- OZ
- One ounce.
- PC
- One parsec.
- PETAGRAM
- Constant equal to one Petagram (1 Pg).
- PETAWATT
- One Petawatt.
- PG
- Constant equal to one Picogram (1 pg).
- PICOSEC
- A constant representing one picosecond.
- PM
- One petametre.
- PMETER
- One picometre.
- PS
- One metric horsepower.
- PW
- One Picowatt.
- RAD
- One radian.
- RE
- One classical electron radius.
- ROD
- One rod.
- SEC
- A constant representing one second.
- SECONDS_
PER_ DAY - Conventional civil mapping used by this module: seconds per mean solar day.
- SIDEREAL_
DAY - A constant representing one sidereal day.
- SIDEREAL_
YEAR - A constant representing one sidereal year.
- ST
- One stone.
- SYNODIC_
MONTH - A constant representing one synodic month.
- TERASEC
- A constant representing one terasecond.
- TG
- Constant equal to one Teragram (1 Tg).
- TM
- One terametre.
- TONE
- One metric tonne.
- TON_UK
- One long ton (UK).
- TON_US
- One short ton (US).
- TURN
- One turn.
- TW_1
- One Terawatt.
- U
- One atomic mass unit.
- UAS
- One microarcsecond.
- UG
- Constant equal to one Microgram (1 µg).
- UM
- One micrometre.
- UW
- One Microwatt.
- WATT
- One watt.
- WEEK
- A constant representing one week.
- YD
- One yard.
- YEAR
- A constant representing one year.
- YG
- Constant equal to one Yoctogram (1 yg).
- YM
- One yottametre.
- YMETER
- One yoctometre.
- YOTTAGRAM
- Constant equal to one Yottagram (1 Yg).
- YW
- One Yoctowatt.
- YW_1
- One Yottawatt.
- ZETTAGRAM
- Constant equal to one Zettagram (1 Zg).
- ZG
- Constant equal to one Zeptogram (1 zg).
- ZM
- One zettametre.
- ZMETER
- One zeptometre.
- ZW
- One Zeptowatt.
- ZW_1
- One Zettawatt.
Traits§
- Angular
Unit - Blanket extension trait for any
Unitwhose dimension isAngular. - Dimension
- Marker trait for dimensions (Length, Time, Mass …).
- Frequency
Unit - Marker trait for any unit with frequency dimension (
Angular / Time). - Length
Unit - Marker trait for any
Unitwhose dimension isLength. - Mass
Unit - Marker trait for any
Unitwhose dimension isMass. - Power
Unit - Marker trait for power units.
- Simplify
- Trait for simplifying composite unit types.
- Time
Unit - Marker trait for any
Unitwhose dimension isTime. - Unit
- Trait implemented by every unit type.
- Velocity
Unit - Marker trait for any unit whose dimension is
VelocityDim.
Type Aliases§
- Ag
- Shorthand alias for
Attogram. - Arcm
- Type alias shorthand for
Arcminute. - Arcminutes
- Convenience alias for an arcminute quantity.
- Arcs
- Type alias shorthand for
Arcsecond. - Arcseconds
- Convenience alias for an arcsecond quantity.
- Astronomical
Units - A quantity measured in astronomical units.
- Atomic
Mass Units - Quantity measured in atomic mass units.
- Attograms
- Quantity measured in Attogram (ag).
- Attometers
- A quantity measured in attometres.
- Attoseconds
- A quantity measured in attoseconds.
- Attowatts
- A quantity measured in Attowatts.
- Au
- Type alias shorthand for
AstronomicalUnit. - Aw
- Type alias shorthand for
Attowatt. - Bohr
Radii - A quantity measured in Bohr radii.
- Carats
- Quantity measured in carats.
- Centigrams
- Quantity measured in Centigram (cg).
- Centimeters
- A quantity measured in centimetres.
- Centiseconds
- A quantity measured in centiseconds.
- Centuries
- A quantity measured in centuries.
- Cg
- Shorthand alias for
Centigram. - Chains
- A quantity measured in chains.
- Classical
Electron Radii - A quantity measured in classical electron radii.
- Cm
- Type alias shorthand for
Centimeter. - Ct
- Shorthand type alias for
Carat. - Dag
- Shorthand alias for
Decagram. - Dalton
- Type alias shorthand for
AtomicMassUnit. - Daw
- Type alias shorthand for
Decawatt. - Days
- A quantity measured in days.
- Decades
- A quantity measured in decades.
- Decagrams
- Quantity measured in Decagram (dag).
- Decameters
- A quantity measured in decametres.
- Decaseconds
- A quantity measured in decaseconds.
- Decawatts
- A quantity measured in Decawatts.
- Decigrams
- Quantity measured in Decigram (dg).
- Decimeters
- A quantity measured in decimetres.
- Deciseconds
- A quantity measured in deciseconds.
- Deciwatts
- A quantity measured in Deciwatts.
- Deg
- Type alias shorthand for
Degree. - Degrees
- Convenience alias for a degree quantity.
- Dg
- Shorthand alias for
Decigram. - Dw
- Type alias shorthand for
Deciwatt. - EW
- Type alias shorthand for
Exawatt. - Earth
Equatorial Circumferences - A quantity measured in Earth equatorial circumferences.
- Earth
Meridional Circumferences - A quantity measured in Earth meridional circumferences.
- Eg
- Shorthand alias for
Exagram. - Electron
Reduced Compton Wavelengths - A quantity measured in reduced Compton wavelengths of the electron.
- Exagrams
- Quantity measured in Exagram (Eg).
- Exameters
- A quantity measured in exametres.
- Exawatts
- A quantity measured in Exawatts.
- Fathoms
- A quantity measured in fathoms.
- Feet
- A quantity measured in feet.
- Femtograms
- Quantity measured in Femtogram (fg).
- Femtometers
- A quantity measured in femtometres.
- Femtoseconds
- A quantity measured in femtoseconds.
- Femtowatts
- A quantity measured in Femtowatts.
- Fg
- Shorthand alias for
Femtogram. - Fortnights
- A quantity measured in fortnights.
- Frequency
- A frequency quantity parameterized by angular and time units.
- Frequency
Dim - Dimension alias for angular frequency (
Angular / Time). - Fw
- Type alias shorthand for
Femtowatt. - GW
- Type alias shorthand for
Gigawatt. - Gg
- Shorthand alias for
Gigagram. - Gigagrams
- Quantity measured in Gigagram (Gg).
- Gigameters
- A quantity measured in gigametres.
- Gigaparsecs
- A quantity measured in gigaparsecs.
- Gigaseconds
- A quantity measured in gigaseconds.
- Gigawatts
- A quantity measured in Gigawatts.
- Gon
- Type alias shorthand for
Gradian. - Gr
- Shorthand type alias for
Grain. - Gradians
- Convenience alias for a gradian quantity.
- Grains
- Quantity measured in grains.
- Grams
- A quantity measured in grams.
- Hectograms
- Quantity measured in Hectogram (hg).
- Hectometers
- A quantity measured in hectometres.
- Hectoseconds
- A quantity measured in hectoseconds.
- Hectowatts
- A quantity measured in Hectowatts.
- Hg
- Shorthand alias for
Hectogram. - Hms
- Type alias shorthand for
HourAngle. - Horsepower
Electrics - A quantity measured in electric horsepower.
- Horsepower
Metrics - A quantity measured in metric horsepower.
- Hour
Angles - Convenience alias for an hour-angle quantity.
- Hours
- A quantity measured in hours.
- Hw
- Type alias shorthand for
Hectowatt. - Inches
- A quantity measured in inches.
- Julian
Centuries - A quantity measured in Julian centuries.
- Julian
Years - A quantity measured in Julian years.
- Kg
- Shorthand alias for
Kilogram. - Kilograms
- Quantity measured in Kilogram (kg).
- Kilometers
- A quantity measured in kilometres.
- Kiloparsecs
- A quantity measured in kiloparsecs.
- Kiloseconds
- A quantity measured in kiloseconds.
- Kilowatts
- A quantity measured in Kilowatts.
- Km
- Type alias shorthand for
Kilometer. - Kw
- Type alias shorthand for
Kilowatt. - Lb
- Shorthand type alias for
Pound. - Light
Years - A quantity measured in light-years.
- Links
- A quantity measured in links.
- Long
Tons - Quantity measured in long tons (UK).
- Ly
- Type alias shorthand for
LightYear. - MOA
- Alias for
Arcminute(minute of angle, MOA). - MW
- Type alias shorthand for
Megawatt. - Mas
- Type alias shorthand for
MilliArcsecond. - Mega
Meter - Type alias shorthand for
Megameter. - Megagrams
- Quantity measured in Megagram (Mg).
- Megameters
- A quantity measured in megametres.
- Megaparsecs
- A quantity measured in megaparsecs.
- Megaseconds
- A quantity measured in megaseconds.
- Megawatts
- A quantity measured in Megawatts.
- Meters
- A quantity measured in metres.
- Mg
- Shorthand alias for
Milligram. - MgG
- Shorthand alias for
Megagram. - Micro
Arcseconds - Convenience alias for a microarcsecond quantity.
- Micrograms
- Quantity measured in Microgram (µg).
- Micrometers
- A quantity measured in micrometres.
- Microseconds
- A quantity measured in microseconds.
- Microwatts
- A quantity measured in Microwatts.
- Miles
- A quantity measured in miles.
- Millennia
- A quantity measured in millennia.
- Milli
Arcseconds - Convenience alias for a milliarcsecond quantity.
- Milligrams
- Quantity measured in Milligram (mg).
- Millimeters
- A quantity measured in millimetres.
- Milliradians
- Convenience alias for a milliradian quantity.
- Milliseconds
- A quantity measured in milliseconds.
- Milliwatts
- A quantity measured in Milliwatts.
- Minutes
- A quantity measured in minutes.
- Mm
- Type alias shorthand for
Millimeter. - Mrad
- Type alias shorthand for
Milliradian. - Mw
- Type alias shorthand for
Milliwatt. - Nanograms
- Quantity measured in Nanogram (ng).
- Nanometers
- A quantity measured in nanometres.
- Nanoseconds
- A quantity measured in nanoseconds.
- Nanowatts
- A quantity measured in Nanowatts.
- Nautical
Miles - A quantity measured in nautical miles.
- Ng
- Shorthand alias for
Nanogram. - Nm
- Type alias shorthand for
Nanometer. - Nw
- Type alias shorthand for
Nanowatt. - Ounces
- Quantity measured in ounces.
- Oz
- Shorthand type alias for
Ounce. - PW
- Type alias shorthand for
Petawatt. - Parsecs
- A quantity measured in parsecs.
- Pc
- Type alias shorthand for
Parsec. - Petagrams
- Quantity measured in Petagram (Pg).
- Petameters
- A quantity measured in petametres.
- Petawatts
- A quantity measured in Petawatts.
- Pg
- Shorthand alias for
Picogram. - PgG
- Shorthand alias for
Petagram. - Picograms
- Quantity measured in Picogram (pg).
- Picometers
- A quantity measured in picometres.
- Picoseconds
- A quantity measured in picoseconds.
- Picowatts
- A quantity measured in Picowatts.
- Planck
Lengths - A quantity measured in Planck lengths.
- Pounds
- Quantity measured in pounds.
- Pw
- Type alias shorthand for
Picowatt. - Rad
- Type alias shorthand for
Radian. - Radians
- Convenience alias for a radian quantity.
- Rods
- A quantity measured in rods/poles/perches.
- Seconds
- A quantity measured in seconds.
- Short
Tons - Quantity measured in short tons (US).
- Sidereal
Days - A quantity measured in sidereal days.
- Sidereal
Years - A quantity measured in sidereal years.
- Solar
Luminosities - A quantity measured in solar luminosities.
- Solar
Masses - A quantity measured in solar masses.
- St
- Shorthand type alias for
Stone. - Stones
- Quantity measured in stones.
- Synodic
Months - A quantity measured in synodic months.
- T
- Shorthand type alias for
Tonne. - TW
- Type alias shorthand for
Terawatt. - Teragrams
- Quantity measured in Teragram (Tg).
- Terameters
- A quantity measured in terametres.
- Teraseconds
- A quantity measured in teraseconds.
- Terawatts
- A quantity measured in Terawatts.
- Tg
- Shorthand alias for
Teragram. - Tonnes
- Quantity measured in tonnes.
- Turns
- Convenience alias for a turn quantity.
- Uas
- Type alias shorthand for
MicroArcsecond. - Ug
- Shorthand alias for
Microgram. - Um
- Type alias shorthand for
Micrometer. - Uw
- Type alias shorthand for
Microwatt. - Velocity
- A velocity quantity parameterized by length and time units.
- Velocity
Dim - Dimension alias for velocities (
Length / Time). - W
- Type alias shorthand for
Watt. - Watts
- A quantity measured in watts.
- Weeks
- A quantity measured in weeks.
- YW
- Type alias shorthand for
Yottawatt. - Yards
- A quantity measured in yards.
- Years
- A quantity measured in years.
- Yg
- Shorthand alias for
Yoctogram. - YgG
- Shorthand alias for
Yottagram. - Yoctograms
- Quantity measured in Yoctogram (yg).
- Yoctometers
- A quantity measured in yoctometres.
- Yoctowatts
- A quantity measured in Yoctowatts.
- Yottagrams
- Quantity measured in Yottagram (Yg).
- Yottameters
- A quantity measured in yottametres.
- Yottawatts
- A quantity measured in Yottawatts.
- Yw
- Type alias shorthand for
Yoctowatt. - ZW
- Type alias shorthand for
Zettawatt. - Zeptograms
- Quantity measured in Zeptogram (zg).
- Zeptometers
- A quantity measured in zeptometres.
- Zeptowatts
- A quantity measured in Zeptowatts.
- Zettagrams
- Quantity measured in Zettagram (Zg).
- Zettameters
- A quantity measured in zettametres.
- Zettawatts
- A quantity measured in Zettawatts.
- Zg
- Shorthand alias for
Zeptogram. - ZgG
- Shorthand alias for
Zettagram. - Zw
- Type alias shorthand for
Zeptowatt.
Derive Macros§
- Unit
- Derive macro used by
qtty-coreto define unit marker types.