title: how to perform floating point calculation in tmote sky (contiki)
body: <p>I have the following code snippet:</p>
  
  <pre><code>#include "contiki.h"
  #include &lt;stdio.h&gt; /* For printf() */
  
  PROCESS(calc_process, "calc process");
  AUTOSTART_PROCESSES(&amp;calc_process);
  
  PROCESS_THREAD(calc_process, ev, data)
  {
   double  dec=13.2, res=0, div=3.2;
  
    PROCESS_BEGIN();
  
  res=dec+div;
  
  printf("%f",res);
  
  
    PROCESS_END();
  }
  </code></pre>
  
  <p>After uploading the above code in Tmote sky platform using the command</p>
  
  <p>make TARGET=sky calc.upload, the program will be loaded to the mote (there is no error). Then login to the mote using make login TARGET=sky, the following output is displayed....</p>
  
  <p>OUPUT:</p>
  
  <p>**Rime started with address 4.0
  MAC 04:00:00:00:00:00:00:00 Contiki 2.7 started. Node id is set to 4.
  CSMA ContikiMAC, channel check rate 8 Hz, radio channel 26
  Starting 'calc process'</p>
  
  <p>%f**</p>
  
  <p>How can I get the correct value?</p>
  
  <p>Thanks</p>