I have a float number 242.1356783 and -87.10234512, I need to restrict it it to 242.1 I tried below on cortex m4 microcontroller
1.data[i] = (int)(data[i] *10);