measurement-toolkit › "SimpleUnit" › SimpleUnit
-
↳ SimpleUnit
+ new SimpleUnit(value
: number): SimpleUnit
Defined in SimpleUnit.ts:17
Parameters:
Name | Type |
---|---|
value |
number |
Returns: SimpleUnit
• symbol: string
Implementation of ISimpleUnit.symbol
Defined in SimpleUnit.ts:13
• value: number
Implementation of ISimpleUnit.value
Defined in SimpleUnit.ts:15
• get to(): any
Defined in Unit.ts:14
Returns: any
▸ add(unit
: SimpleUnit): this
Defined in SimpleUnit.ts:35
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ divideBy(unit
: SimpleUnit): this
Defined in SimpleUnit.ts:41
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ dividedBy(unit
: SimpleUnit): this
Defined in SimpleUnit.ts:47
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ getConverters(): object
Implementation of ISimpleUnit
Overrides Unit.getConverters
Defined in SimpleUnit.ts:25
Returns: object
- [ key: string]: function
▸ (): ISimpleUnit
▸ multiply(unit
: SimpleUnit): this
Defined in SimpleUnit.ts:53
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ percentageOf(unit
: SimpleUnit): this
Overrides Unit.percentageOf
Defined in SimpleUnit.ts:59
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ percentageOfThis(unit
: SimpleUnit): this
Defined in SimpleUnit.ts:65
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ subtract(unit
: SimpleUnit): this
Defined in SimpleUnit.ts:29
Parameters:
Name | Type |
---|---|
unit |
SimpleUnit |
Returns: this
▸ toString(): string
Implementation of ISimpleUnit
Defined in SimpleUnit.ts:71
Returns: string