#include <math.h>

const int8_t scales[] {0x02, 0x01, 0x00, 0xFF, 0xFE, 0xFD};

const int16_t value = 12345;

double scaleValue(int16_t value, const int8_t scaler) {
  return value * pow(10, scaler);
}


void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  for (auto scaler : scales)
    Serial.println(scaleValue(value, scaler));
}

void loop() {
  // put your main code here, to run repeatedly:
  delay(10); // this speeds up the simulation
}