function convertToUINT16(input) {
if (isNaN(input)) {
throw new Error(`convertToUINT16 only accepts number as first argument, but "${ input }" passed!`);
}
return new Uint16Array([input])[0];
}
function convertToFloat(input) {
if (isNaN(input)) {
throw new Error(`convertToFloat only accepts number as first argument, but "${ input }" passed!`);
}
return input;
}