weasel API - v0.8.0
    Preparing search index...

    Interface UnitSystem

    Conversion table mapping unit names to factors against a base unit.

    interface UnitSystem {
        base: string;
        units: Record<Unit, number>;
    }
    Index

    Properties

    Properties

    base: string

    Name of the base unit, e.g. 'in'. All conversions resolve to this.

    units: Record<Unit, number>

    Factor to multiply a value in unit by to get base units. base unit's factor is 1.