513 B

Function to

Change the unit of a value.

x to unit     to(x, unit)

For matrices, the function is evaluated element wise.

Parameters

Parameter Type Description
x Unit | Array | Matrix
unit Unit | Array | Matrix

Returns

Type Description
Unit | Array | Matrix res