in C/C++, I can declare a floating point variable (single or double precision) and later access its hexadecimal representation. For instance, I can declare a double:
double a = 75.94;
and later refer to it and obtain its hexademical representation in memory using a pointer and reading the correct amount of bytes (in this example, the equivalent hexadecimal representation in memory of the above double will be 0x4052fc28f5c28f5c).
Is there a way to achieve the same result in SystemVerilog?