On Thursday, 5 March 2015 at 20:03:09 UTC, Benjamin Thaut wrote:
int someValue = 5; float sameBinary = *(cast(float*)cast(void*)&someValue);
The cast(void*) isn't necessary.
On Thursday, 5 March 2015 at 20:03:09 UTC, Benjamin Thaut wrote:
int someValue = 5; float sameBinary = *(cast(float*)cast(void*)&someValue);
The cast(void*) isn't necessary.