You can just trivially write that yourself:
float x;
const unsigned char * pf = reinterpret_cast<const unsigned char*>(&x);
for (size_t i = 0; i != sizeof(float); ++i)
{
// ith byte is pf[i]
// e.g. printf("0x02X ", pf[i]);
}
In fact, you can do that to obtain the binary representation of any (standard-layout*) variable.
*) thanks, @R. Martinho Fernandes!
If you decide to try this on a long double (or rather, an 80-bit extended precision float), beware that that has only 10 bytes, but is padded to 12 or 16 on x86/x64, respectively.
70.482should return428CF6C9? What is the logic?