title: how to restrict float number to 1 digit after decimal point
body: <p>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</p>
  <p>1.data[i] = (int)(data[i] *10);<br />
  data[i] = data[i]/10;</p>
  <p>2.data[i]= ceilf(data[i] * 100)/100;</p>
  <p>3.data[i] = roundf(data[i]*100)/100;
  but none work.</p>
  <p>Anybody has other solution?</p>