measurement-toolkit"IUnit"IUnit

Interface: IUnit

This file is part of Measurement Toolkit

(c) Bas Peeters bas@peete.rs

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Hierarchy

  • IUnit

IBaseUnit

ICompoundUnit

IDerivedUnit

ISimpleUnit

Implemented by

Index

Properties

Methods

Properties

to

to: object

Defined in IUnit.ts:10

Type declaration:

  • [ key: string]: function

▸ (): IUnit

Methods

add

add(unit: IUnit): this

Defined in IUnit.ts:12

Parameters:

Name Type
unit IUnit

Returns: this


divideBy

divideBy(unit: IUnit): this

Defined in IUnit.ts:14

Parameters:

Name Type
unit IUnit

Returns: this


multiply

multiply(unit: IUnit): this

Defined in IUnit.ts:16

Parameters:

Name Type
unit IUnit

Returns: this


percentageOf

percentageOf(unit: IUnit): this

Defined in IUnit.ts:18

Parameters:

Name Type
unit IUnit

Returns: this


subtract

subtract(unit: IUnit): this

Defined in IUnit.ts:20

Parameters:

Name Type
unit IUnit

Returns: this


toString

toString(): string

Defined in IUnit.ts:22

Returns: string