UnitConvertor.canConvert

Checks if unit conversion from in unit to out unit is possible

class UnitConvertor
const
bool
canConvert
(
string inUnit
,
string outUnit
)

Parameters

inUnit string

unit to convert from

outUnit string

unit to convert to

Return Value

Type: bool

true if conversion is possible, false otherwise

Meta