bytesToNum function
Implementation
num bytesToNum(List<int> byteValues, int precision) {
// TODO 2's complement byteValues for proper interpretation
// Uint8List, ByteData.view(...).getInt32
// https://api.dartlang.org/stable/2.1.0/dart-typed_data/ByteData-class.html
num result = bytesToInt(byteValues);
for (var count = precision; count > 0; --count) {
result /= 10;
}
return result;
}