#include <iostream>
#include <bitset>
using namespace std;
void printBits(const double a)
{
cout << bitset<64>(*reinterpret_cast<const uint64_t*>(&a)) << endl;
}
int main()
{
const double a = 3.14;
printBits(a);
printBits(-a);
printBits(a*2);
printBits(a*4);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Yml0c2V0Pgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBwcmludEJpdHMoY29uc3QgZG91YmxlIGEpCnsKCWNvdXQgPDwgYml0c2V0PDY0PigqcmVpbnRlcnByZXRfY2FzdDxjb25zdCB1aW50NjRfdCo+KCZhKSkgPDwgZW5kbDsKfQoKaW50IG1haW4oKSAKewogICAgY29uc3QgZG91YmxlIGEgPSAzLjE0OwogICAgcHJpbnRCaXRzKGEpOwogICAgcHJpbnRCaXRzKC1hKTsKICAgIHByaW50Qml0cyhhKjIpOwogICAgcHJpbnRCaXRzKGEqNCk7CglyZXR1cm4gMDsKfQ==