hi,

I have an issue when using this formula:

```
weight_vector_length = sqrt((acc_x*acc_x)+(acc_y*acc_y)*(acc_z*acc_z));
Serial.print(weight_vector_length);
```

Every named variable here is 16bits integer (by default).

The goal was to retrieve the length of the weight vector exerced on my accelerometer.

The result of this should always be near 16384, as it is corresponding to 1g for my accelerometer.

My issue is that it, no matter what, gives me a weird small number, like 177.

When I tried to put "weight_vector_length" as a 32bit integer, it would always give me the inferior limit : −2147483648.

I did the math and I should get a result of 16909 as my acc_x, acc_y and acc_z were respectively of 14708, -172 and 8340.

I think it's called an overflow but I have no idea what is causing it (as none of the values exceed 32767), I'm not really sure what to do