title: conversion of binary fraction to decimal in java
body: <p>I want to convert a binary fraction into decimal.Consider binary number 1101.1110. I know the manual method of conversion and i can put in the form of program, but i am not able to separate the fractional part from the number. I need to separate it because the method of conversion differs after the point. </p>
  
  <p>while converting decimal to binary the fractional part can be separated this way:</p>
  
  <pre><code>double num=12.23;
  
  int fraction=num-(long)num;
  </code></pre>
  
  <p>can u help me.</p>
  
  <p>Thanks in advance.</p>