Template SIDefinitions

Generates SI units, prefixes and several utility functions (parsing and formatting) usable at compile-time and/or at run-time.

template SIDefinitions(N) ;

Contained Variables

NameTypeDescription
siParser Parser!(N,(refs)=>parse!N(s))A list of common SI symbols and prefixes
siSymbols SymbolList!NA list of common SI symbols and prefixes

Contained Functions

NameDescription
parseSI Parses a statically-typed Quantity from a string at run time.
parseSI Parses a string for a quantity at run time.
siFormat Formats a SI quantity according to a format string known at run-time.
siFormat Formats a SI quantity according to a format string known at compile-time.

Contained Structs

NameDescription
SIFormatter A struct able to format a SI quantity.

Contained Aliases

NameDescription
AbsorbedDose Predefined quantity type templates for SI quantities
Acceleration Predefined quantity type templates for SI quantities
AmountOfSubstance Predefined quantity type templates for SI quantities
Angle Predefined quantity type templates for SI quantities
Area Predefined quantity type templates for SI quantities
atto SI prefixes.
Capacitance Predefined quantity type templates for SI quantities
CatalyticActivity Predefined quantity type templates for SI quantities
CelsiusTemperature Predefined quantity type templates for SI quantities
centi SI prefixes.
Concentration Predefined quantity type templates for SI quantities
CurrentDensity Predefined quantity type templates for SI quantities
deca SI prefixes.
deci SI prefixes.
Dimensionless Predefined quantity type templates for SI quantities
DoseEquivalent Predefined quantity type templates for SI quantities
ElectricCharge Predefined quantity type templates for SI quantities
ElectricConductance Predefined quantity type templates for SI quantities
ElectricCurrent Predefined quantity type templates for SI quantities
ElectricPotential Predefined quantity type templates for SI quantities
ElectricResistance Predefined quantity type templates for SI quantities
Energy Predefined quantity type templates for SI quantities
exa SI prefixes.
femto SI prefixes.
Force Predefined quantity type templates for SI quantities
Frequency Predefined quantity type templates for SI quantities
giga SI prefixes.
Heat Predefined quantity type templates for SI quantities
hecto SI prefixes.
Illuminance Predefined quantity type templates for SI quantities
Inductance Predefined quantity type templates for SI quantities
kilo SI prefixes.
litre Units compatible with the SI
Luminance Predefined quantity type templates for SI quantities
LuminousFlux Predefined quantity type templates for SI quantities
LuminousIntensity Predefined quantity type templates for SI quantities
MagneticFieldStrength Predefined quantity type templates for SI quantities
MagneticFlux Predefined quantity type templates for SI quantities
MagneticFluxDensity Predefined quantity type templates for SI quantities
Mass Predefined quantity type templates for SI quantities
MassDensity Predefined quantity type templates for SI quantities
MassicConcentration Predefined quantity type templates for SI quantities
mega SI prefixes.
metre Base SI units.
micro SI prefixes.
milli SI prefixes.
MolarConcentration Predefined quantity type templates for SI quantities
nano SI prefixes.
peta SI prefixes.
pico SI prefixes.
Power Predefined quantity type templates for SI quantities
Pressure Predefined quantity type templates for SI quantities
Radioactivity Predefined quantity type templates for SI quantities
RefractiveIndex Predefined quantity type templates for SI quantities
SolidAngle Predefined quantity type templates for SI quantities
Speed Predefined quantity type templates for SI quantities
Temperature Predefined quantity type templates for SI quantities
tera SI prefixes.
Time Predefined quantity type templates for SI quantities
Volume Predefined quantity type templates for SI quantities
Work Predefined quantity type templates for SI quantities
yocto SI prefixes.
yotta SI prefixes.
zepto SI prefixes.
zetta SI prefixes.