export default class Measure extends Number implements Number {
public symbol = ''
constructor(value: number | string | Measure, symbol?: string) {
super(value)
if (symbol) {
this.symbol = symbol
}
}
public valueOf = (): number => {
return parseFloat(this.toPrecision(12))
}
public toString = (): string => {
return String(this.valueOf()) + this.symbol
}
}