pe__unit_factor

Retrieves the conversion factor of a unit

Usage syntax

double pe_unit_factor (PE_UNIT unit);

Parameters
unit The unit object
Description

Retrieves the conversion factor of the specified unit

The conversion is either (a) number of meters per unit for linear units or (b) number of radians per unit for angular units.

Returns

On success, the unit conversion factor; on failure, zero

Examples

double x = xm*pe_unit_factor(ft);