title: Taking Modulo of Double NUmber
body: <p>I have given two number <code>a</code> and <code>b</code>.I have to Calculate <code>(a^b)%1000000007</code>.How Can i calculate for floating point numbers. Ex:<br></p>
  
  <pre><code>a= 7.654 and b=10000
  </code></pre>
  
  <p>Here is my Code will <code>%</code> work :</p>
  
  <pre><code> public static double super_pow(double A , long B){
  
            double o=1;
  
            while(B&gt;0){
  
                if((B&amp;1)!=0) o*=A;
  
                A*=A;
                B/=2;
                o%=mod;
                A%=mod;
            }
  
            return (o)%mod;
      }
  </code></pre>