I get unit256 class from litecoin wallet source, but this class dont have divide operator. So i convert uint256 to double which have implemintation in uint256 class
double getdouble() const
{
double ret = 0.0;
double fact = 1.0;
for (int i = 0; i < WIDTH; i++) {
ret += fact * pn[i];
fact *= 4294967296.0;
}
return ret;
}
But now i need convert this huge double to hex string. This string will be represent target for miner, as far i understand. Or i need this double variable converts back to uint256 and thet get hex from it.