#include "floatx.hpp" #include #include #include using namespace std; int main() { float x = 9.5; // while (1) { cout << "Input x"; // cin >> x; // FLoat X. First parameter is exponent, flx::floatx<8, 23> g(x); std::bitset<1 + 8 + 23> out = flx::detail::get_fullbit_representation_BS<8, 23>(g); cout << hex << out.to_ulong() << endl; // } return 0; }