Skip to content

Documentation / @interstellar-tools/types / MassInterface

Interface: MassInterface ​

Defined in: quantities.ts:49

A mass with its unit.

Example ​

ts
const jupiter: MassInterface = { value: 1.898e27, unit: 'kg' };
const hd189733b: MassInterface = { value: 1.13, unit: 'M_jup' };

Extends ​

Properties ​

unit ​

ts
unit: MassUnitType;

Defined in: quantities.ts:50


value ​

ts
value: number;

Defined in: numeric.ts:18

The numeric value of the measurement.

Inherited from ​

ValueInterface.value