Skip to content

Documentation / @interstellar-tools/types / DensityInterface

Interface: DensityInterface ​

Defined in: quantities.ts:70

A mass density with its unit.

Example ​

ts
const saturn: DensityInterface = { value: 0.687, unit: 'g/cm3' };

Extends ​

Properties ​

unit ​

ts
unit: DensityUnitType;

Defined in: quantities.ts:71


value ​

ts
value: number;

Defined in: numeric.ts:18

The numeric value of the measurement.

Inherited from ​

ValueInterface.value