title: send a floating point number in the register
body: <p>I am writing a software in c code in sdk vivado, 
  i have this function for writing to the register </p>
  
  <pre><code>MYIP_CELL_TOP_mWriteReg(BaseAddress, RegOffset, Data) \
  Xil_Out32((BaseAddress) + (RegOffset), (u32)(Data))
  </code></pre>
  
  <p>as you see one of the parameters of this function is <strong>Data</strong> which is <strong>U32</strong> and U32  means :</p>
  
  <pre><code>unsigned long   U32
  </code></pre>
  
  <p>i want to send a floating point number in the register.</p>
  
  <p>like this number  <strong>0.0807836f</strong> , what i did,  i separate the decimal and fractional part and send them to different registers.( then i want to use other function to read from registers and i can concatenate them ) </p>
  
  <p>my problem is when i send them to the registers , the fractional part is <strong>807836</strong>  , which is would like to have <strong>0807836</strong> . </p>
  
  <p>i wrote this code :</p>
  
  <pre><code>Xfloat32 a = 0.0807836f
          int whole, thousandths ;
          whole = a;
          thousandths = (a - whole) * 100000;
  
          MYIP_CELL_TOP_mWriteReg(XPAR_MYIP_CELL_TOP_V1_0_0_0_S00_AXI_LITE_BASEADDR ,ADDR_CLUSTER_INIT_DATA_DATA_0_OFFSET, whole);
          MYIP_CELL_TOP_mWriteReg(XPAR_MYIP_CELL_TOP_V1_0_0_0_S00_AXI_LITE_BASEADDR ,ADDR_CLUSTER_INIT_DATA_DATA_1_OFFSET, thousandths );
  </code></pre>
  
  <p>Please help me how i can send fractional part like this 0807836.</p>
  
  <p>thank you in advance </p>