#include "floatx.hpp" #include #include #include using namespace std; int main() { double x = 384; //pow(2,-7); // cout << "Input x"; // cin >> x; // FLoat X. First parameter is exponent, flx::floatx<4, 3> g(x); std::bitset<1 + 4 + 3> out = flx::detail::get_fullbit_representation_BS<4, 3>(g); cout << hex << out.to_ulong() << endl; cout << "Stored Float" << g; return 0; }