Unit.to()method

to(amount: number, targetKey?: K): number

Convert an amount from this unit to another unit.