Skip to content

mp_units::si

The International System of Units (SI)

Description

The system of units built on top of the isq. It provides the SI base units, the derived units with special names, the SI prefixes, and the defining constants of the 2019 SI.

quantity distance = 2 * km + 500 * m;                 // 2500 m
quantity speed = (distance / (5. * min)).in(km / h);  // 30 km/h

Types

Enums

NameDescription
prefix_range Which SI prefixes invoke_with_prefixed may choose

Functions

NameDescription
acos
asin
atan
atan2
cos
invoke_with_prefixed Calls an invocable with a quantity scaled to an automatically selected SI prefix
operator+ Addition operators
operator- Subtraction operators
sin
tan

Variables

Using Declarations

See Also