Class Accuracy<U, T>Abstract
Constructors
constructor
- new Accuracy<U, T>(value?, unit?): Accuracy<U, T>
Type Parameters
- U extends Unit = Unit
- T extends unknown = number
Parameters
Optional
value: TOptional
unit: U
Accessors
unit
- get unit(): U
Returns U
Unit this value is in
Methods
clone
- clone(): this
Returns this
to
- to<T>(unit): this
Returns this
Converted value
Abstract
toString
- toString(): string
Returns string
Unit value as string
Abstract
valueOf
- valueOf(): number
Returns number
Primitive value
Unit this value is in