Skip to content

This site describes solve-engine 2.44.0, the version npm installs.

canConvert

function canConvert(from, to): boolean;

Defined in: packages/engine/src/uom/UomConverter.ts:126

Check whether from can be converted to to. Same unit, or same measure kind (length, mass, …) and the underlying tables accept the pair. Never throws; returns false on any failure.

ParameterType
fromstring
tostring

boolean