MCPcopy Create free account
hub / github.com/JeanLucPons/VanitySearch / ToDouble

Method ToDouble

Int.cpp:665–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663// ------------------------------------------------
664
665double Int::ToDouble() {
666
667 double base = 1.0;
668 double sum = 0;
669 double pw32 = pow(2.0,32.0);
670 for(int i=0;i<NB32BLOCK;i++) {
671 sum += (double)(bits[i]) * base;
672 base *= pw32;
673 }
674
675 return sum;
676
677}
678
679// ------------------------------------------------
680

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected