This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Strange behavior when division operation

Hi,

I am using nRF52832, SDK_15.3.0, S132 SoftDevice and Segger for flashing the image. I am using ‘ble_app_blinky’.

As shown in below snapshot I am just doing below operation. How come 247 divide by 10 becomes 0. Some thing strange going.

i16CheckTempThresholds = strFlashDataRecord.i16Temperature / 10;

I defined as

int16_t  i16CheckTempThresholds = 0;

Thanks & Regards

Vishnu Beema

Parents Reply Children
No Data
Related