Pathfinder 1e for Foundry VTT
    Preparing search index...

    Function convertDistanceBack

    • Converts what the world is using as a measurement unit to feet.

      Parameters

      • value: number

        The value (in the world's measurement unit) to convert back.

      • type: "mi" | "ft" | "in" = "ft"

        The target type to convert back to. Either 'ft' (feet, default), 'mi' (miles, in which case the expected given value should be in km (metric)), or 'in' (inches, in which case the expected given value should be in cm (metric))

      Returns [range: number, unit: "mi" | "ft" | "in"]

      The resulting value and unit