Unit.from()method

from(amount: number, sourceKey?: K): number

Convert an amount from another unit to this unit.